[openstack-dev] [nova] generate_sample.sh

Ben Nemec openstack at nemebean.com
Fri Jul 26 16:39:20 UTC 2013


Fix proposed for the hostname conflict issue: 
https://review.openstack.org/#/c/38837/

-Ben

On 2013-07-26 10:14, Ben Nemec wrote:
> Okay, I found my problem.  My dev vm's hostname is "openstack", which
> causes problems in _sanitize_defaults due to this:
> 
> elif s == socket.gethostname():
>     return 'nova'
> 
> I can just change my hostname to fix it, but I would expect that this
> is going to come up on a regular basis (I can't be the only one using
> openstack as a hostname) so it would be nice to come up with a
> different solution.
> 
> -Ben
> 
> On 2013-07-26 09:46, Ben Nemec wrote:
>> This:
>> 
>> bnemec at openstack:/opt/stack/nova$ tools/config/generate_sample.sh -b .
>> -p nova -o etc/nova
>> 
>> Results in this for me:
>> 
>> -#control_exchange=openstack
>> +#control_exchange=nova
>> 
>> Which breaks Jenkins.  I was thinking I would try to take a look and
>> figure out why it wants to change that since I wasted a bunch of time
>> on it yesterday.
>> 
>> -Ben
>> 
>> On 2013-07-26 02:37, Tian, Shuangtai wrote:
>>> Hi, I do not know why , Mybe the patch
>>> https://review.openstack.org/#/c/38418/ [1] have someone else to
>>> approve ,
>>> 
>>> You can try this ./tools/config/generate_sample.sh -b /opt/stack/nova
>>> -o ./etc/nova ,that’s ok to me.
>>> 
>>> FROM: Haomai Wang [mailto:haomai at unitedstack.com]
>>>  SENT: Friday, July 26, 2013 3:18 PM
>>>  TO: OpenStack Development Mailing List
>>>  SUBJECT: Re: [openstack-dev] [nova] generate_sample.sh
>>> 
>>> 2013-7-26,3:11 pm,"Tian, Shuangtai" <shuangtai.tian at intel.com>
>>> Wrote:
>>> 
>>> Recently,generate_sample.sh had been changed . look the help.
>>> 
>>> For example, try run "./tools/config/generate_sample.sh -b ./ -p nova
>>> -o ./etc/nova" and commit the changes in nova.conf.sample
>>> 
>>> I don't know why I can't run command as expected see below.
>>> 
>>> $ ./tools/config/generate_sample.sh -b ./ -p nova -o ./etc/nova
>>> 
>>> generate_sample.sh: missing project base directory
>>> 
>>> Try `generate_sample.sh --help' for more information.
>>> 
>>> FROM: Haomai Wang [mailto:haomai at unitedstack.com [2]]
>>>  SENT: Friday, July 26, 2013 2:50 PM
>>>  TO: OpenStack Development Mailing List
>>>  SUBJECT: Re: [openstack-dev] [nova] generate_sample.sh
>>> 
>>> 2013-7-26,1:58 pm,Gary Kotton <gkotton at vmware.com> Wrote:
>>> 
>>> Hi,
>>> 
>>> Over the last few days I have been battling with this script (I am
>>> only human). Recently there was a nice change that removed the number
>>> of entries which helps with the merges. One thing that I have
>>> encountered over the last 2 days is that the pep8 passes with my
>>> environment and fails with the gaiting. Would it be possible that
>>> Jenkins updates the nova.sample.conf in a similar fashion to the way
>>> that is done with the translations?
>>> 
>>> +1, I encountered the same problem and I think the task running
>>> gererate_sample.sh should be given to Jenkins
>>> 
>>> Thanks
>>> 
>>> Gary
>>> 
>>> _______________________________________________
>>>  OpenStack-dev mailing list
>>>  OpenStack-dev at lists.openstack.org
>>>  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev 
>>> [3]
>>> 
>>> 
>>> Best regards,
>>> 
>>> Haomai Wang, UnitedStack Inc.
>>> 
>>> _______________________________________________
>>>  OpenStack-dev mailing list
>>>  OpenStack-dev at lists.openstack.org
>>>  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev 
>>> [3]
>>> 
>>> 
>>> Best regards,
>>> 
>>> Haomai Wang, UnitedStack Inc.
>>> 
>>> 
>>> 
>>> Links:
>>> ------
>>> [1] https://review.openstack.org/#/c/38418/
>>> [2] http://unitedstack.com
>>> [3] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>> 
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>> 
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list