[fuel-devops-3] Fuel-devops cannot use cloud images with custom metadata

Bug #1602298 reported by Dennis Dmitriev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Wishlist
Dennis Dmitriev

Bug Description

Fuel-devops supports a special role 'centos_master' that can be used for create a node with BaseOS for further setup Fuel master node.

But there is no possibility to use cloud images with custom metadata and for custom roles.

Let's move the code that creates an ISO with metadata to the Libvirt Node.define(), so that any Libvirt node could be based on cloud image.

Changed in fuel:
assignee: nobody → Dennis Dmitriev (ddmitriev)
status: New → In Progress
Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (master)

Reviewed: https://review.openstack.org/338496
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=b5625c1f2fa7e0661ad260c05b6086479b3d56ef
Submitter: Jenkins
Branch: master

commit b5625c1f2fa7e0661ad260c05b6086479b3d56ef
Author: Dennis Dmitriev <email address hidden>
Date: Wed Jul 6 21:42:57 2016 +0300

    Configure cloudimage-based nodes from devops template

    - New attributes in Libvirt Node object:
      cloud_init_volume_name: <string> # Volume name for cloudinit config
          If set, than Node.define() will try to make an ISO image with
          metadata for cloudimage, and upload it to the specified Volume.
      cloud_init_iface_up: <string> # Interface label to set up on boot

    - New attributes in Libvirt Volume object for cloudinit metadata:
      cloudinit_meta_data: <string> # Yaml as a string
      cloudinit_user_data: <string> # Yaml as a string

    - Resize 'source_image' after upload to the specified 'capacity' size.
      It's useful for cases when original qcow2 is much smaller than
      it is required, so 'source_image' with the size 2Gb will be resized
      to 'capacity', for example 50Gb, after upload to the libvirt pool.
      For qcow2 images, real disk space is not allocated, it is a virtual
      resize only.

    - 'centos_master' node role extension refactored: now pre_define()
      method just initialize the metadata objects (if they weren't passed
      from the template).

    - add an example template

    Closes-Bug:#1602298

    Change-Id: If35b252964a28a4bd43f073318cee93f3dfbe907

Changed in fuel:
status: In Progress → Fix Committed
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.