[OpenStack-Infra] [third-party][openstack][CI] Examples required for "single_node_ci_data.yaml" config file

Abhishek Shrivastava abhishek at cloudbyte.com
Wed May 11 05:29:37 UTC 2016


Hi Ramy,

The image build seems to be working fine now but while running the
command "*nodepool
image-upload all 'dpc'*" its is failing with the following error:

2016-05-11 10:58:43,233 INFO gear.Connection.nodepool: Disconnected from
127.0.0.1 port 4730
2016-05-11 10:58:43,234 INFO gear.Connection.nodepool: Connected to
127.0.0.1 port 4730
2016-05-11 10:58:43,281 ERROR nodepool.NodePool: Could not upload image dpc
on local_01
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nodepool/nodepool.py", line
1724, in uploadImage
    image_id = images[0].id
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/local/bin/nodepool", line 10, in <module>
    sys.exit(main())
  File
"/usr/local/lib/python2.7/dist-packages/nodepool/cmd/nodepoolcmd.py", line
397, in main
    return npc.main()
  File
"/usr/local/lib/python2.7/dist-packages/nodepool/cmd/nodepoolcmd.py", line
390, in main
    self.args.func()
  File
"/usr/local/lib/python2.7/dist-packages/nodepool/cmd/nodepoolcmd.py", line
280, in image_upload
    job.waitForCompletion()
AttributeError: 'NoneType' object has no attribute 'waitForCompletion'

Can you please help me with this one to sort it out, what I am really
missing?

On Tue, May 10, 2016 at 11:23 PM, Asselin, Ramy <ramy.asselin at hpe.com>
wrote:

> It’s documented here:
>
>
> http://docs.openstack.org/infra/openstackci/third_party_ci.html#configure-masterless-puppet
>
>
>
> “Modify /etc/puppet/environments/common.yaml as you need using the
> parameter documentation described in single_node_ci.pp or logserver.pp.
> These are the top level puppet class that is used in site.pp.”
>
>
>
> Which links to:
> http://git.openstack.org/cgit/openstack-infra/puppet-openstackci/tree/manifests/single_node_ci.pp#n104
>
> “# [*oscc_file_contents*]
>
> #   The multi-line contents of os-client-config.
>
> #   This allows the nodepool.yaml file provided to not contain any
> sensitive
>
> #   provider passwords. See configuration guide for more details:
>
> #
> https://git.openstack.org/cgit/openstack/os-client-config/tree/README.rst
>
>>
> Which links to os-client-config README ^^
>
>
>
> Patches to improve the documentation are welcome.  Links were intended to
> avoid copy and paste, but perhaps including a base example or the URL
> directly in contrib/single_node_ci_data.yaml would be helpful?
>
>
>
> Ramy
>
>
>
> *From:* Abhishek Shrivastava [mailto:abhishek at cloudbyte.com]
> *Sent:* Tuesday, May 10, 2016 2:19 AM
>
> *To:* Bob Ball <bob.ball at citrix.com>
> *Cc:* openstack-infra at lists.openstack.org; openstack at lists.openstack.org
> *Subject:* Re: [OpenStack-Infra] [third-party][openstack][CI] Examples
> required for "single_node_ci_data.yaml" config file
>
>
>
> Thanks a lot for the help Bob :)
>
>
>
>
>
> On Tue, May 10, 2016 at 2:36 PM, Bob Ball <bob.ball at citrix.com> wrote:
>
> You need your own credentials where I put <removed> - I just didn’t want
> to share my credentials with the whole OpenStack community J
>
>
>
> Bob
>
>
>
> *From:* Abhishek Shrivastava [mailto:abhishek at cloudbyte.com]
> *Sent:* 10 May 2016 10:04
> *To:* Bob Ball <bob.ball at citrix.com>
> *Cc:* openstack-infra at lists.openstack.org; openstack at lists.openstack.org
> *Subject:* Re: [OpenStack-Infra] [third-party][openstack][CI] Examples
> required for "single_node_ci_data.yaml" config file
>
>
>
> Thanks Bob,
>
>
>
> So just need to put the following in the section without any credentials?
>
>
>
> On Tue, May 10, 2016 at 1:35 PM, Bob Ball <bob.ball at citrix.com> wrote:
>
> Hi Abishek,
>
>
>
> I use the following which works well:
>
> oscc_file_contents: |
>
>                     # Do Not Edit - Generated & Managed by Puppet
>
>                     clouds:
>
>                         rax:
>
>                             profile: rackspace
>
>                             regions:
>
>                                 - IAD
>
>                                 - ORD
>
>                                 - DWF
>
>                             auth:
>
>                                 username: <removed>
>
>                                 password: <removed>
>
>                                 project-id: <removed>
>
>                     #
>
>
>
> Then my nodepool config has “cloud: rax” and “region-name: ‘IAD’” instead
> of any credentials.
>
>
>
> Thanks,
>
>
>
> Bob
>
>
>
> *From:* Abhishek Shrivastava [mailto:abhishek at cloudbyte.com]
> *Sent:* 10 May 2016 07:13
> *To:* openstack-infra at lists.openstack.org; openstack at lists.openstack.org
> *Subject:* [OpenStack-Infra] [third-party][openstack][CI] Examples
> required for "single_node_ci_data.yaml" config file
>
>
>
> Hi Folks,
>
>
>
> I have been configuring the new OpenStack CI and was not able to figure
> out what exactly needed to be put in the section "*oscc_file_contents:*".
> So, if anyone has done the configuration and is running the new OpenStack
> CI please let me know what to put in the configuration.
>
>
>
> Also, need to know how to add slaves to Jenkins using the Nodepool images.
>
>
>
> --
>
> *Thanks & Regards,*
>
> *Abhishek*
>
> *Cloudbyte Inc. <http://www.cloudbyte.com>*
>
>
>
>
>
> --
>
> *Thanks & Regards,*
>
> *Abhishek*
>
> *Cloudbyte Inc. <http://www.cloudbyte.com>*
>
>
>
>
>
> --
>
> *Thanks & Regards,*
>
> *Abhishek*
>
> *Cloudbyte Inc. <http://www.cloudbyte.com>*
>



-- 


*Thanks & Regards,*
*Abhishek*
*Cloudbyte Inc. <http://www.cloudbyte.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-infra/attachments/20160511/516d5384/attachment-0001.html>


More information about the OpenStack-Infra mailing list