fuel-bootstrap: config file is not synced to Mcollective container

Bug #1528787 reported by Vasyl Saienko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Aleksey Zvyagintsev

Bug Description

[root@nailgun ~]# fuel-bootstrap build
'NoneType' object is not iterable
[root@nailgun ~]# fuel-bootstrap --debug build
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/commands/build.py", line 173, in take_action
    image_uuid, path = bs_image.make_bootstrap(vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/bootstrap_image.py", line 171, in make_bootstrap
    bootdata = bootdata_builder.build()
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/data.py", line 85, in build
    'repos': self._get_repos(),
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/data.py", line 133, in _get_repos
    repos.extend(CONF.ubuntu_repos)
TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/bin/fuel-bootstrap", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/main.py", line 54, in main
    return fuel_bootstrap_app.run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/commands/build.py", line 173, in take_action
    image_uuid, path = bs_image.make_bootstrap(vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/bootstrap_image.py", line 171, in make_bootstrap
    bootdata = bootdata_builder.build()
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/data.py", line 85, in build
    'repos': self._get_repos(),
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/data.py", line 133, in _get_repos
    repos.extend(CONF.ubuntu_repos)
TypeError: 'NoneType' object is not iterable

ISO: https://product-ci.infra.mirantis.net/job/8.0.all/338

Tags: area-python
Vasyl Saienko (vsaienko)
Changed in fuel:
assignee: nobody → Aleksey Zvyagintsev (azvyagintsev)
Revision history for this message
Vasyl Saienko (vsaienko) wrote :

fuel-bootstrap config file /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml is not synced with Mcollective container.

summary: - fuel-bootstrap: can't build in Mcollective container
+ fuel-bootstrap: config file is not synced to Mcollective container
Changed in fuel:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/260936

Changed in fuel:
assignee: Aleksey Zvyagintsev (azvyagintsev) → Vasyl Saienko (vsaienko)
status: Confirmed → In Progress
assignee: Vasyl Saienko (vsaienko) → Aleksey Zvyagintsev (azvyagintsev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-main (master)

Change abandoned by Vasyl Saienko (<email address hidden>) on branch: master
Review: https://review.openstack.org/260936
Reason: https://review.openstack.org/#/c/260929

Changed in fuel:
milestone: none → 8.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/261462

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/8.0)

Change abandoned by Aleksey Zvyagintsev (<email address hidden>) on branch: stable/8.0
Review: https://review.openstack.org/261462

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/260929
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=68dd04bfb552cd93f89211baa9d67a9fbf0b6285
Submitter: Jenkins
Branch: master

commit 68dd04bfb552cd93f89211baa9d67a9fbf0b6285
Author: alexz <email address hidden>
Date: Wed Dec 23 11:55:02 2015 +0200

    Pass fuel-bootstrap-cli config to containers

    * install fuel-bootstrap-cli in mcollective bootstrap
    * we need rw permission for successful package
      install\upgrade inside container (linked config file will not be changed -
      new one will be saved with .rpmnew)

    Change-Id: I7b2a096cec99ec5923b00f6b084987455adf0637
    Closes-Bug: #1528787

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/261462
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=6ec90013ed909997097563cddc762937dc873eb3
Submitter: Jenkins
Branch: stable/8.0

commit 6ec90013ed909997097563cddc762937dc873eb3
Author: alexz <email address hidden>
Date: Wed Dec 23 11:55:02 2015 +0200

    Pass fuel-bootstrap-cli config to containers

    * install fuel-bootstrap-cli in mcollective bootstrap
    * we need rw permission for successful package
      install\upgrade inside container (linked config file will not be changed -
      new one will be saved with .rpmnew)

    Change-Id: I7b2a096cec99ec5923b00f6b084987455adf0637
    Closes-Bug: #1528787
    (cherry picked from commit 68dd04bfb552cd93f89211baa9d67a9fbf0b6285)

tags: added: area-python
Revision history for this message
ElenaRossokhina (esolomina) wrote :
Download full text (4.2 KiB)

Verified on #427:
[root@nailgun etc]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "427"
  build_id: "427"
  fuel-nailgun_sha: "9ebbaa0473effafa5adee40270da96acf9c7d58a"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "df16d41cd7a9445cf82ad9fd8f0d53824711fcd8"
  fuel-nailgun-agent_sha: "92ebd5ade6fab60897761bfa084aefc320bff246"
  astute_sha: "c7ca63a49216744e0bfdfff5cb527556aad2e2a5"
  fuel-library_sha: "fae42170a54b98d8e8c8db99b0fbb312633c693c"
  fuel-ostf_sha: "214e794835acc7aa0c1c5de936e93696a90bb57a"
  fuel-mirror_sha: "b62f3cce5321fd570c6589bc2684eab994c3f3f2"
  fuelmenu_sha: "85de57080a18fda18e5325f06eaf654b1b931592"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "9f0ba4577915ce1e77f5dc9c639a5ef66ca45896"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "e8e36cff332644576d7853c80b8a53d5b955420a"

[root@nailgun etc]# fuel-bootstrap build
Try to build image with data:
bootstrap:
  container: {format: tar.gz, meta_file: metadata.yaml}
  extend_kopts: biosdevname=0 net.ifnames=1 debug ignore_loglevel log_buf_len=10M
    print_fatal_signals=1 LOGLEVEL=8
  extra_files: [/usr/share/fuel_bootstrap_cli/files/trusty]
  label: 291768e3-de70-449a-98ff-edb58c09ebad
  modules:
  - {mask: kernel, name: kernel, uri: 'http://127.0.0.1:8080/bootstraps/291768e3-de70-449a-98ff-edb58c09ebad/vmlinuz'}
  - {compress_format: xz, mask: initrd, name: initrd, uri: 'http://127.0.0.1:8080/bootstraps/291768e3-de70-449a-98ff-edb58c09ebad/initrd.img'}
  - &id001 {compress_format: xz, container: raw, format: ext4, mask: rootfs, name: rootfs,
    uri: 'http://127.0.0.1:8080/bootstraps/291768e3-de70-449a-98ff-edb58c09ebad/root.squashfs'}
  post_script_file: null
  root_ssh_authorized_file: /root/.ssh/id_rsa.pub
  uuid: 291768e3-de70-449a-98ff-edb58c09ebad
codename: trusty
image_data:
  /: *id001
output: /tmp/291768e3-de70-449a-98ff-edb58c09ebad.tar.gz
packages: [squashfs-tools, nailgun-agent, nailgun-mcagents, live-boot, live-boot-initramfs-tools,
  i40e-dkms, vim, fuel-agent, mcollective, xz-utils, msmtp-mta, wget, hpsa-dkms, openssh-client,
  mc, ntp, linux-firmware, linux-firmware-nonfree, network-checker, openssh-server,
  linux-headers-generic, linux-image-generic-lts-trusty, ubuntu-minimal]
proxies: {}
repos:
- {name: ubuntu, priority: null, section: main universe multiverse, suite: trusty,
  type: deb, uri: 'http://archive.ubuntu.com/ubuntu'}
- {name: ubuntu-updates, priority: null, section: main universe multiverse, suite: trusty-updates,
  type: deb, uri: 'http://archive.ubuntu.com/ubuntu'}
- {name: ubuntu-security, priority: null, section: main universe multiverse, suite: trusty-security,
  type: deb, uri: 'http://archive.ubuntu.com/ubuntu'}
- {name: mos, priority: 1050, section: main restricted, suite: mos8.0, type: deb,
  uri: 'http://127.0.0.1:8080/ubuntu/x86_64'}
- {name: mos-updates, priority: 1050, section: main restricted, suite: mos8.0-updates,
  type: deb, uri: 'http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0'}
- {name: mos-security, priority: 1050, section: ...

Read more...

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.