-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying bootstrap node failing with error "Jinja variable 'None' has no attribute 'get'" #2137
Comments
please propose solution for this problem. Thanks in advance. |
From |
One thing you could definitely try is simple re-run the bootstrap script, which could succeed. Not sure where this error is coming from, though... It appears the |
I actually had a successful install of same ISO a month ago, but due to Zenko installation failures, i have to re-install the cluster. But this time i am not understanding why i am getting this error. I ran bootstrap script several times, and it is failing with same error. |
From your logs, The error you get is not that # salt/_pillar/metalk8s_private.py L59-68
private_data = {'private': None}
if "master" in node_info["roles"]:
# update in `private_data`
result = {"metalk8s": private_data} Now, there should be no reason for this problem to exist during bootstrap. Indeed, we force the Bootstrap roles to include What was the state of the platform before initial Bootstrap @shashscality? |
I have followed very straight forward steps.
I have attached the complete bootstrap.log file. |
Can you provide the output of
(executed on the bootstrap node after the bootstrap script failed). Feel free to remove the 'secret' strings from the |
|
That's not at all what we except while bootstrapping: the roles of the node should include We'll need to look into what's causing this... Also, please use literal blocks when providing command output and such 😉 |
@shashscality We've been looking into this, and we tried to reproduce the issue, but have been unable to. Is there any other information you could provide related to your environment? Anything which could help our investigation? If there's any information that would help we can think of, we'll ask 😄 |
@NicolasT I tried a fresh installation again and ended with same error. I am not understanding where i am doing the mistake. When i run the bootstrap.sh script for the very first time, i will get some package related errors and i tried manually installing them with "yum install" command. Once all the package related errors disappears, the next invoke of bootstrap.sh script fails with the reported error. I have attached the bootstrap.log file of my today attempt. |
Hello @shashscality, Thanks for getting back. It looks like initially you had some misconfiguration in Finally, the same error appears again, though it's still unclear why that's the case. One thing that could help debugging is looking into the Salt Meanwhile, we're still looking into what could be going on. Are you sure the ISO you're using has been built in a pristine environment? |
@NicolasT I have attached salt master logs. Please let me know your observations. |
I tried with 2.4.1 too, and it is ended with same error. Can someone please help me to solve this issue. |
Hello @shashscality! I looked into those logs but could not see anything that provides more insight 🤔 Asking the team to take another look as well... Were you able to make any progress on your side? |
@NicolasT , I could able to make some progress, i could able to install MetalK8s on 5 node cluster. If i build the ISO image on the same bootstrapper node then i am observing that the bootstrap.sh is going fine, but if i make ISO image on some other node with the same OS and configuration then it is failing with the reported error. But anyway, i have many different problems now after the installation. Could you please guide me with the bellow points.
|
That's good news!
That's really strange and rather unexpected: we run builds on various developer machines (including Fedora, Ubuntu, Arch Linux,...) as well as in CI (CentOS 7), and as far as I'm aware the build system works fine on all of them. Anything particular in your setup? In any case, Scality customers and partners can receive pre-built ISOs which are fully tested, validated and supported by Scality. As such, if you're either a customer or a partner, please reach out to your Scality representative to get access to these builds!
These can be defined in the
Since you have overlap between the |
Just added a workarround in the ticket description. FYI: You get this error if first run of the bootstrap deployment failed when salt-master get deployed with external pillar declared in it and apiserver role not yet set on the bootstrap node.
So as a workaround manually add the label for role master fix this issue |
Component:
Deploying bootstrap node (2.4.2 version)
What happened:
bootstrap.sh is failing with the step "Deploying bootstrap node (this may take a while)" and the error is
What was expected:
/srv/scality/metalk8s-2.4.2-dev/bootstrap.sh script should complete successfully.
Steps to reproduce
N/A.
Resolution proposal (optional):
Workaround:
<node_name>
with the bootstrap node name)Note by @NicolasT: edited report to put command output in a literal block for readability
Note by @TeddyAndrieux added a workaround
The text was updated successfully, but these errors were encountered: