Repository navigation
Closed
Labels
P3Priority 3RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.RegressionThe issue is a bug that breaks functionality known to work in previous releases.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Milestone
Description
Hello,
I'm trying to launch the exemple inside the documentation https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.cloud.html#salt.runners.cloud.create for runners.cloud.profile:
salt-run cloud.profile prof=my_profile instances=test-instanceAnd I get this error :
Exception occurred in runner cloud.profile: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/client/mixins.py", line 337, in low
data['return'] = self.functions[fun](*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/runners/cloud.py", line 106, in profile
info = client.profile(prof, instances, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 341, in profile
mapper.run_profile(profile, names, vm_overrides=vm_overrides)
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1403, in run_profile
ret[name] = self.create(vm_)
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1249, in create
output = self.clouds[func](vm_)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 753, in create
'wait_for_ip_interval', vm_, __opts__, default=10),
File "/usr/lib/python2.7/dist-packages/salt/utils/cloud.py", line 2240, in wait_for_ip
data = update_callback(*update_args, **update_kwargs)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 732, in __query_node_data
data.public_ips = access_ip
UnboundLocalError: local variable 'access_ip' referenced before assignmentThe VM is created inside my cloud provider, the minion key is accepted inside my salt-master. But after connecting to the VM, salt-minion is not installed.
When I try with salt-cloud, I got the same error and problem.
After downgrading to 2015.8.1 (my previous version), it's working. So this is a regression inside 2015.8.3.
Thanks for your support and your product,
Damien DESMARETS
Metadata
Metadata
Assignees
Labels
P3Priority 3RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.RegressionThe issue is a bug that breaks functionality known to work in previous releases.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
jfindlay commentedon Dec 17, 2015
@zaide, thanks for the report.
rallytime commentedon Jan 5, 2016
@gtmanfred You might have some thoughts on this. There isn't a default set for
access_ipin the Nova driver. I'm not familiar enough with this driver to know what that default should be, though maybe that is a simple fix for you?gtmanfred commentedon Jan 5, 2016
Can you check and see if it works from the 2015.8 branch in git?
I found a bug in one thing that wasn't setting the access_ip correctly, and fixed it a bit ago.
I believe this might fix this issue already.
rallytime commentedon Jan 5, 2016
@zaide Can you test this from the HEAD of the 2015.8 branch?
rallytime commentedon Jan 12, 2016
Actually, @gtmanfred I was just looking over the code at the HEAD of 2015.8, and
access_ipis indeed not set to anything by default. It gets set in a lot of places hidden under variousifstatements. I'm not sure if that is because there is something missing from @zaide's config files, or if something is getting missed for his setup. We should at the very least clean up that stacktrace and provide a helpful error if we've made it that far without anaccess_ip.@zaide Can you also post your relevant profile/provider configurations (with sensitive data removed)? That will aide in the diagnosis of this bug.
gtmanfred commentedon Jan 19, 2016
We can assign it to a None value, but it should follow one of the branches that assignes access_ip to something everywhere.
I can take a look at some point this week and see if I can figure out a better way to do it (a lot of this stuff is going to be changed when i finish the rewrite using shade as well.
gtmanfred commentedon Feb 12, 2016
Can you check if this pr fixes your problems #31120 ?
Thanks
Daniel
stale commentedon Mar 23, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.