Skip to content
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

katprep_populate: Local variable ‘mon_hosts‘ referenced before assignment #111

Open
IncredibleRichie opened this issue Oct 22, 2018 · 1 comment
Assignees
Labels
Projects
Milestone

Comments

@IncredibleRichie
Copy link

IncredibleRichie commented Oct 22, 2018

I think its a problem.
Using Foreman (Orcharhino)

If i try the populate command i get UnboundLocalError: local variable 'mon_hosts' referenced before assignment.
Here is the full output:

katprep_populate -s host.fqdn --virt-uri 192.168.xxx.x --virt-type pyvmomi --skip-mon --insecure
Authentication container password: 
Foreman Username: 	 
Foreman Password: 
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
Virtualization Username: [email protected]
Virtualization Password: 
INFO:katprep_populate:Gathering host inventory information. This *WILL* take some time - please be patient.
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
Traceback (most recent call last):
  File "/usr/bin/katprep_populate", line 9, in <module>
    load_entry_point('katprep==0.5.0', 'console_scripts', 'katprep_populate')()
  File "build/bdist.linux-x86_64/egg/katprep/populate.py", line 351, in cli
  File "build/bdist.linux-x86_64/egg/katprep/populate.py", line 330, in main
  File "build/bdist.linux-x86_64/egg/katprep/populate.py", line 106, in populate
UnboundLocalError: local variable 'mon_hosts' referenced before assignment
@stdevel stdevel self-assigned this Oct 29, 2018
@stdevel stdevel added the bug label Oct 29, 2018
@stdevel
Copy link
Owner

stdevel commented Oct 29, 2018

Hi richielatk!

Thanks for sharing, I will check this out when I have some spare time and let you know what I found out. Looks like this might be related to #92.

Best regards,
Christian.

@stdevel stdevel added this to the 0.5.x milestone Oct 29, 2018
@stdevel stdevel changed the title Ketprep_populate katprep_populate: Local variable ‘mon_hosts‘ referenced before assignment Oct 29, 2018
@stdevel stdevel added this to To do in 0.5.x Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
0.5.x
  
To do
Development

No branches or pull requests

2 participants