Bug 1259411

Summary: Backport: nova-network needs authentication
Product: [Community] RDO Reporter: Bob Ball <bugzilla>
Component: openstack-puppet-modulesAssignee: Ivan Chavero <ichavero>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: KiloCC: srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:56:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bob Ball 2015-09-02 14:22:24 UTC
Description of problem:
When using packstack to install a nova-network setup, an error is returned saying authentication is required:
10.80.238.227_nova.pp:                            [ ERROR ]          
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 10.80.238.227_nova.pp
Error: Execution of '/usr/bin/nova network-create novanetwork --fixed-range-v4 192.168.32.0/22' returned 1: ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]
You will find full trace in log /var/tmp/packstack/20150902-134753-xtfpOt/manifests/10.80.238.227_nova.pp.log
Please check log file /var/tmp/packstack/20150902-134753-xtfpOt/openstack-setup.log for more information

Version-Release number of selected component (if applicable):
openstack-packstack-2015.1-0.11.dev1616.g5526c38.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install packstack using https://www.rdoproject.org/Quickstart
2. Generate an answer-file
3. Disable Neutron (so nova-network will be used)
4. run packstack --answer-file=<file>

Actual results:
Packstack should succeed

Expected results:
Error: Execution of '/usr/bin/nova network-create novanetwork --fixed-range-v4 192.168.32.0/22' returned 1: ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]

Additional info:
This is due to an error in the puppet modules which is due to be fixed by
https://review.openstack.org/#/c/206926/

Comment 1 Bob Ball 2015-09-03 12:29:20 UTC
Even with the above change, further changes are needed to the puppet scripts to fix nova-networking.  One revert (https://review.openstack.org/#/c/210256/1) does fix both issues.

Comment 3 Chandan Kumar 2016-05-19 15:56:40 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.