From 8de54cce381456d63e4662cc7147cc08aaabf023 Mon Sep 17 00:00:00 2001 From: Bartosz Kupidura Date: Thu, 7 Apr 2016 18:59:32 +0200 Subject: [PATCH] Add hiera yaml for generate_vms granular Closes-Bug: #1568734 Depends-on: Ic6dfebd2b032f59312b0f0af60d99db6d28763d7 Change-Id: I2a48e00c76b85a69a746d410d6d99303bd5f400e --- hiera/neut_tun.vms_conf-virt.yaml | 964 ++++++++++++++++++++++++++++++ utils/generate_yamls.sh | 18 + 2 files changed, 982 insertions(+) create mode 100644 hiera/neut_tun.vms_conf-virt.yaml diff --git a/hiera/neut_tun.vms_conf-virt.yaml b/hiera/neut_tun.vms_conf-virt.yaml new file mode 100644 index 0000000..02ec078 --- /dev/null +++ b/hiera/neut_tun.vms_conf-virt.yaml @@ -0,0 +1,964 @@ +access: + email: admin@localhost + metadata: + group: general + label: OpenStack Access + weight: 10 + password: admin + tenant: admin + user: admin +aodh: + db_password: uLcMoDwcNBabLiQzuaH5UbrZ + user_password: WxOuvgXgN0zgydBtVaeSPkMB +auth_key: '' +auto_assign_floating_ip: false +base_syslog: + syslog_port: '514' + syslog_server: 10.110.0.2 +ceilometer: + db_password: 4MLJEr4AXkKk7IQMKy2egPVZ + enabled: false + metering_secret: i1bL8rsKhLy81Dzh2gG81MAK + user_password: S1flVN6Z9sRoOLGb0JC7uWuN +cgroups: + metadata: + always_editable: true + group: general + label: Cgroups conguration for services + restrictions: + - action: hide + condition: 'true' + weight: 90 +cinder: + db_password: q7R6A8jQ11uF4lW31zyzzHhj + fixed_key: 17e925dad5e9d3b6d619fa8b8eae34a16694c8a1dc2960f0c26e863cae3f734f + user_password: cokVpc6zOLexn0jrl5Y8TSsn +cobbler: + profile: ubuntu_1404_x86_64 +corosync: + group: 226.94.1.1 + metadata: + group: general + label: Corosync + restrictions: + - action: hide + condition: 'true' + weight: 50 + port: '12000' + verified: false +debug: false +deployed_before: + value: false +deployment_id: 25 +deployment_mode: ha_compact +dpdk: {} +external_dns: + dns_list: + - 10.110.0.1 + metadata: + group: network + label: Host OS DNS Servers + weight: 30 +external_mongo: + hosts_ip: '' + metadata: + group: openstack_services + label: External MongoDB + restrictions: + - action: hide + condition: settings:additional_components.mongo.value == false + message: Ceilometer and MongoDB are not enabled on the Additional Components + section + weight: 30 + mongo_db_name: ceilometer + mongo_password: ceilometer + mongo_replset: '' + mongo_user: ceilometer +external_ntp: + metadata: + group: network + label: Host OS NTP Servers + weight: 40 + ntp_list: + - 10.110.0.1 +fail_if_error: false +fqdn: node-60.test.domain.local +fuel_version: '9.0' +glance: + db_password: WLPAB5kqNY4RWaX5O8ftkyyP + image_cache_max_size: '5368709120' + user_password: evg2AcYmSLp2Dq02RkOviHIT +glance_glare: + user_password: LaXvQpJTwZ0orpNznwFhzaDM +heat: + auth_encryption_key: 693db1df645da35e6983e79e87b548aa + db_password: oisKMEbIXFsAdn00w8fm7MuX + enabled: true + rabbit_password: Xu8o0NwviUahGRCwHNtu6paO + user_password: YgSCjYKwYgikoc4oPIaqjndl +horizon: + secret_key: 92777d00fc2ace90c87f85ff1bcc2b3fff752c41dc058051234339d95217dcd8 +ironic: + db_password: GvUatCVr9sW4qWYXtV9QrRpD + enabled: false + swift_tempurl_key: oaM1X8PYfmzAqOWlwYFcMPWt + user_password: 4TPskaBnhtFAXvCtzgN4ChR7 +kernel_params: + kernel: console=tty0 net.ifnames=0 biosdevname=0 rootdelay=90 nomodeset + metadata: + group: general + label: Kernel parameters + weight: 60 +keystone: + admin_token: pLjAWatVupBHgXbxyZUkfJnP + db_password: XRFXARB9HnJwfqFIWWCn4wn4 +last_controller: null +libvirt_type: qemu +management_network_range: 192.168.0.0/24 +master_ip: 10.110.0.2 +metadata: + label: Common + weight: 10 +mongo: + enabled: false +mp: +- point: '1' + weight: '1' +- point: '2' + weight: '2' +murano: + db_password: jEnDYLznAy5MeVqwHWinxadz + enabled: false + rabbit_password: 9upggdtcJBUzciou8kWRoIHn + user_password: 4yxNMX552cuP3IaG0YRH6gMb +murano-cfapi: + db_password: NvFA6kbLxZYZ9karj0fc1gKS + enabled: false + rabbit_password: johbmafwzpGIXic7KQNVTQsH + user_password: bokDukrV6kn8Y97WCP1C5rCy +murano_glance_artifacts_plugin: + enabled: false +murano_settings: + metadata: + group: openstack_services + label: Murano Settings + restrictions: + - action: hide + condition: settings:additional_components.murano.value == false + message: Murano is not enabled on the Additional Components section + weight: 20 + murano_repo_url: http://storage.apps.openstack.org/ +mysql: + root_password: 5r9u5qFLlw4f7wDaxCmoeriY + wsrep_password: 9CyGqAiaRttZ41pLb9eaaWQs +network_metadata: + nodes: + node-60: + fqdn: node-60.test.domain.local + name: node-60 + network_roles: + admin/pxe: 10.110.0.4 + aodh/api: 192.168.0.1 + ceilometer/api: 192.168.0.1 + ceph/public: 192.168.1.1 + ceph/radosgw: 172.16.0.2 + ceph/replication: 192.168.1.1 + cinder/api: 192.168.0.1 + cinder/iscsi: 192.168.1.1 + ex: 172.16.0.2 + fw-admin: 10.110.0.4 + glance/api: 192.168.0.1 + glance/glare: 192.168.0.1 + heat/api: 192.168.0.1 + horizon: 192.168.0.1 + ironic/api: 192.168.0.1 + keystone/api: 192.168.0.1 + management: 192.168.0.1 + mgmt/corosync: 192.168.0.1 + mgmt/database: 192.168.0.1 + mgmt/memcache: 192.168.0.1 + mgmt/messaging: 192.168.0.1 + mgmt/vip: 192.168.0.1 + mongo/db: 192.168.0.1 + murano/api: 192.168.0.1 + murano/cfapi: 192.168.0.1 + neutron/api: 192.168.0.1 + neutron/floating: null + neutron/mesh: 192.168.2.1 + neutron/private: null + nova/api: 192.168.0.1 + nova/migration: 192.168.0.1 + public/vip: 172.16.0.2 + sahara/api: 192.168.0.1 + storage: 192.168.1.1 + swift/api: 192.168.0.1 + swift/replication: 192.168.1.1 + node_roles: + - virt + nova_cpu_pinning_enabled: false + nova_hugepages_enabled: false + swift_zone: '60' + uid: '60' + user_node_name: Untitled (e7:0d) + node-61: + fqdn: node-61.test.domain.local + name: node-61 + network_roles: + admin/pxe: 10.110.0.5 + aodh/api: 192.168.0.2 + ceilometer/api: 192.168.0.2 + ceph/public: 192.168.1.2 + ceph/replication: 192.168.1.2 + cinder/api: 192.168.0.2 + cinder/iscsi: 192.168.1.2 + fw-admin: 10.110.0.5 + glance/api: 192.168.0.2 + glance/glare: 192.168.0.2 + heat/api: 192.168.0.2 + horizon: 192.168.0.2 + ironic/api: 192.168.0.2 + keystone/api: 192.168.0.2 + management: 192.168.0.2 + mgmt/corosync: 192.168.0.2 + mgmt/database: 192.168.0.2 + mgmt/memcache: 192.168.0.2 + mgmt/messaging: 192.168.0.2 + mgmt/vip: 192.168.0.2 + mongo/db: 192.168.0.2 + murano/api: 192.168.0.2 + murano/cfapi: 192.168.0.2 + neutron/api: 192.168.0.2 + neutron/floating: null + neutron/mesh: 192.168.2.2 + neutron/private: null + nova/api: 192.168.0.2 + nova/migration: 192.168.0.2 + sahara/api: 192.168.0.2 + storage: 192.168.1.2 + swift/api: 192.168.0.2 + swift/replication: 192.168.1.2 + node_roles: + - compute + nova_cpu_pinning_enabled: false + nova_hugepages_enabled: false + swift_zone: '61' + uid: '61' + user_node_name: Untitled (6a:71) + vips: {} +network_scheme: + endpoints: + br-ex: + IP: + - 172.16.0.2/24 + gateway: 172.16.0.1 + vendor_specific: + provider_gateway: 172.16.0.1 + br-floating: + IP: none + br-fw-admin: + IP: + - 10.110.0.4/24 + vendor_specific: + provider_gateway: 10.110.0.1 + br-mesh: + IP: + - 192.168.2.1/24 + br-mgmt: + IP: + - 192.168.0.1/24 + br-storage: + IP: + - 192.168.1.1/24 + interfaces: + enp0s3: + vendor_specific: + bus_info: '0000:00:03.0' + driver: e1000 + enp0s4: + vendor_specific: + bus_info: '0000:00:04.0' + driver: e1000 + enp0s5: + vendor_specific: + bus_info: '0000:00:05.0' + driver: e1000 + enp0s6: + vendor_specific: + bus_info: '0000:00:06.0' + driver: e1000 + enp0s7: + vendor_specific: + bus_info: '0000:00:07.0' + driver: e1000 + provider: lnx + roles: + admin/pxe: br-fw-admin + aodh/api: br-mgmt + ceilometer/api: br-mgmt + ceph/public: br-storage + ceph/radosgw: br-ex + ceph/replication: br-storage + cinder/api: br-mgmt + cinder/iscsi: br-storage + ex: br-ex + fw-admin: br-fw-admin + glance/api: br-mgmt + glance/glare: br-mgmt + heat/api: br-mgmt + horizon: br-mgmt + ironic/api: br-mgmt + keystone/api: br-mgmt + management: br-mgmt + mgmt/corosync: br-mgmt + mgmt/database: br-mgmt + mgmt/memcache: br-mgmt + mgmt/messaging: br-mgmt + mgmt/vip: br-mgmt + mongo/db: br-mgmt + murano/api: br-mgmt + murano/cfapi: br-mgmt + neutron/api: br-mgmt + neutron/floating: br-floating + neutron/mesh: br-mesh + nova/api: br-mgmt + nova/migration: br-mgmt + public/vip: br-ex + sahara/api: br-mgmt + storage: br-storage + swift/api: br-mgmt + swift/replication: br-storage + transformations: + - action: add-br + name: br-fw-admin + - action: add-br + name: br-mgmt + - action: add-br + name: br-storage + - action: add-br + name: br-ex + - action: add-br + name: br-floating + provider: ovs + - action: add-patch + bridges: + - br-floating + - br-ex + mtu: 65000 + provider: ovs + - action: add-br + name: br-mesh + - action: add-port + bridge: br-fw-admin + name: enp0s3 + - action: add-port + bridge: br-mgmt + name: enp0s3.101 + - action: add-port + bridge: br-storage + name: enp0s3.102 + - action: add-port + bridge: br-mesh + name: enp0s3.103 + - action: add-port + bridge: br-ex + name: enp0s4 + version: '1.1' +neutron_advanced_configuration: + metadata: + group: network + label: Neutron Advanced Configuration + restrictions: + - action: hide + condition: cluster:net_provider != 'neutron' + weight: 20 + neutron_dvr: false + neutron_l2_pop: false + neutron_l3_ha: false + neutron_qos: false +node_volumes: +- extra: + - disk/by-id/virtio-7ce5ca2c36294717948d + free_space: 50572 + id: vda + name: vda + size: 51200 + type: disk + volumes: + - size: 300 + type: boot + - file_system: ext2 + mount: /boot + name: Boot + size: 200 + type: raid + - size: 0 + type: lvm_meta_pool + - lvm_meta_size: 64 + size: 19520 + type: pv + vg: os + - lvm_meta_size: 64 + size: 31180 + type: pv + vg: vm +- extra: + - disk/by-id/virtio-2fdfb56aed9e45f1bbc0 + free_space: 50572 + id: vdb + name: vdb + size: 51200 + type: disk + volumes: + - size: 300 + type: boot + - file_system: ext2 + mount: /boot + name: Boot + size: 200 + type: raid + - size: 64 + type: lvm_meta_pool + - lvm_meta_size: 0 + size: 0 + type: pv + vg: os + - lvm_meta_size: 64 + size: 50636 + type: pv + vg: vm +- extra: + - disk/by-id/virtio-1503a07cd11542249bf0 + free_space: 50572 + id: vdc + name: vdc + size: 51200 + type: disk + volumes: + - size: 300 + type: boot + - file_system: ext2 + mount: /boot + name: Boot + size: 200 + type: raid + - size: 64 + type: lvm_meta_pool + - lvm_meta_size: 0 + size: 0 + type: pv + vg: os + - lvm_meta_size: 64 + size: 50636 + type: pv + vg: vm +- _allocate_size: min + id: os + label: Base System + min_size: 19456 + type: vg + volumes: + - file_system: ext4 + mount: / + name: root + size: 15360 + type: lv + - file_system: swap + mount: swap + name: swap + size: 4096 + type: lv +- _allocate_size: all + id: vm + label: Virtual Storage + min_size: 5120 + type: vg + volumes: + - file_system: xfs + mount: /var/lib/nova + name: nova + size: 132260 + type: lv +nodes: +- fqdn: node-60.test.domain.local + internal_address: 192.168.0.1 + internal_netmask: 255.255.255.0 + name: node-60 + public_address: 172.16.0.2 + public_netmask: 255.255.255.0 + role: virt + storage_address: 192.168.1.1 + storage_netmask: 255.255.255.0 + swift_zone: '60' + uid: '60' + user_node_name: Untitled (e7:0d) +- fqdn: node-61.test.domain.local + internal_address: 192.168.0.2 + internal_netmask: 255.255.255.0 + name: node-61 + role: compute + storage_address: 192.168.1.2 + storage_netmask: 255.255.255.0 + swift_zone: '61' + uid: '61' + user_node_name: Untitled (6a:71) +nova: + db_password: q7mj3iheGGKdTtNfThRQFqXT + enable_hugepages: false + state_path: /var/lib/nova + user_password: nsqx5AUWM7ZlEIEeXH01rWsO +nova_quota: false +online: true +openstack_version: mitaka-9.0 +operator_user: + authkeys: '' + homedir: /home/fueladmin + metadata: + group: general + label: Operating System Access + weight: 15 + name: fueladmin + password: adhpStdQ0fs6TpHfE309gE2d + sudo: 'ALL=(ALL) NOPASSWD: ALL' +plugins: [] +priority: 100 +private_network_range: 192.168.2.0/24 +provision: + codename: trusty + image_data: + /: + container: gzip + format: ext4 + uri: http://10.110.0.2:8080/targetimages/env_25_ubuntu_1404_amd64.img.gz + /boot: + container: gzip + format: ext2 + uri: http://10.110.0.2:8080/targetimages/env_25_ubuntu_1404_amd64-boot.img.gz + metadata: + group: general + label: Provision + restrictions: + - action: hide + condition: 'false' + weight: 80 + method: image + packages: 'acl + + anacron + + bash-completion + + bridge-utils + + bsdmainutils + + build-essential + + cloud-init + + curl + + daemonize + + debconf-utils + + gdisk + + grub-pc + + hpsa-dkms + + hwloc + + i40e-dkms + + linux-firmware + + linux-firmware-nonfree + + linux-headers-generic-lts-trusty + + linux-image-generic-lts-trusty + + lvm2 + + mcollective + + mdadm + + multipath-tools + + multipath-tools-boot + + nailgun-agent + + nailgun-mcagents + + network-checker + + ntp + + openssh-client + + openssh-server + + puppet + + python-amqp + + ruby-augeas + + ruby-ipaddress + + ruby-json + + ruby-netaddr + + ruby-openstack + + ruby-shadow + + ruby-stomp + + telnet + + ubuntu-minimal + + ubuntu-standard + + uuid-runtime + + vim + + virt-what + + vlan + + ' +public_network_assignment: + assign_to_all_nodes: false + metadata: + group: network + label: Public network assignment + restrictions: + - action: hide + condition: cluster:net_provider != 'neutron' + weight: 10 +public_ssl: + cert_data: '' + cert_source: self_signed + horizon: false + hostname: public.fuel.local + metadata: + group: security + label: Public TLS + weight: 110 + services: false +puppet: + manifests: rsync://10.110.0.2:/puppet/mitaka-9.0/manifests/ + modules: rsync://10.110.0.2:/puppet/mitaka-9.0/modules/ +puppet_debug: true +quantum: true +quantum_settings: + L2: + base_mac: fa:16:3e:00:00:00 + phys_nets: + physnet1: + bridge: br-floating + vlan_range: null + segmentation_type: tun + tunnel_id_ranges: 2:65535 + L3: + use_namespaces: true + database: + passwd: sozGijf9XFWizeCDySVNDITO + default_floating_net: admin_floating_net + default_private_net: admin_internal_net + keystone: + admin_password: NHtZfpJOHy1okDE8Ud5akK1J + metadata: + metadata_proxy_shared_secret: Z0TlSH0lABIcqNqXp7ZlGqGf + predefined_networks: + admin_floating_net: + L2: + network_type: flat + physnet: physnet1 + router_ext: true + segment_id: null + L3: + enable_dhcp: false + floating: + - 172.16.0.130:172.16.0.254 + gateway: 172.16.0.1 + nameservers: [] + subnet: 172.16.0.0/24 + shared: false + tenant: admin + admin_internal_net: + L2: + network_type: tun + physnet: null + router_ext: false + segment_id: null + L3: + enable_dhcp: true + floating: null + gateway: 192.168.111.1 + nameservers: + - 8.8.4.4 + - 8.8.8.8 + subnet: 192.168.111.0/24 + shared: false + tenant: admin +rabbit: + password: POtDFZrfsHF4eWZk2zOsbT9l +repo_setup: + installer_initrd: + local: /var/www/nailgun/ubuntu/x86_64/images/initrd.gz + remote_relative: dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz + installer_kernel: + local: /var/www/nailgun/ubuntu/x86_64/images/linux + remote_relative: dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux + metadata: + always_editable: true + group: general + label: Repositories + weight: 50 + 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: mos9.0 + type: deb + uri: http://10.110.0.2:8080/mitaka-9.0/ubuntu/x86_64 + - name: mos-updates + priority: 1050 + section: main restricted + suite: mos9.0-updates + type: deb + uri: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ + - name: mos-security + priority: 1050 + section: main restricted + suite: mos9.0-security + type: deb + uri: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ + - name: mos-holdback + priority: 1100 + section: main restricted + suite: mos9.0-holdback + type: deb + uri: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ + - name: Auxiliary + priority: 1150 + section: main restricted + suite: auxiliary + type: deb + uri: http://10.110.0.2:8080/mitaka-9.0/ubuntu/auxiliary +resume_guests_state_on_host_boot: true +role: virt +sahara: + db_password: GiKgN6Iwfq1WWjwOp7JM22wk + enabled: false + user_password: r228YKdYqnBvofBDFY5949KL +service_user: + homedir: /var/lib/fuel + metadata: + group: general + label: Service user account + restrictions: + - action: hide + condition: 'true' + weight: 10 + name: fuel + password: 4nW7Ga6QSCXL3tP0HYoTOKng + root_password: r00tme + sudo: 'ALL=(ALL) NOPASSWD: ALL' +status: discover +storage: + admin_key: AQCftQtXAAAAABAAHQ5oHwtlKXyFJXBQHE9V2Q== + bootstrap_osd_key: AQCftQtXAAAAABAAaMHzhcya9T2ii69+HXyWsQ== + ephemeral_ceph: false + fsid: 5f125843-7876-4b1f-ba88-c318be5a5ab3 + images_ceph: false + images_vcenter: false + metadata: + group: storage + label: Storage Backends + weight: 60 + mon_key: AQCftQtXAAAAABAAJc1QNhjV27EtFB4pqNPvRQ== + objects_ceph: false + osd_pool_size: '3' + per_pool_pg_nums: + .rgw: 128 + backups: 128 + compute: 128 + default_pg_num: 128 + images: 128 + volumes: 128 + pg_num: 128 + radosgw_key: AQCftQtXAAAAABAA456aCumTcqETSqHopfQWtQ== + volumes_block_device: false + volumes_ceph: false + volumes_lvm: true +storage_network_range: 192.168.1.0/24 +swift: + user_password: g8dYoajN7YGmfrTkW9OCXj8l +syslog: + metadata: + enabled: false + group: logging + label: Syslog + toggleable: true + weight: 50 + syslog_port: '514' + syslog_server: '' + syslog_transport: tcp +task_deploy: true +tasks: +- id: reserved_ports + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/netconfig/reserved_ports.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 180 + priority: 100 + type: puppet + uids: + - '60' +- id: hiera + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/hiera/hiera.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 200 + type: puppet + uids: + - '60' +- id: setup_repositories + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/fuel_pkgs/setup_repositories.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 600 + priority: 300 + type: puppet + uids: + - '60' +- id: globals + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/globals/globals.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 400 + type: puppet + uids: + - '60' +- id: logging + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/logging/logging.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 500 + type: puppet + uids: + - '60' +- id: tools + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/tools/tools.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 600 + type: puppet + uids: + - '60' +- id: netconfig + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 700 + type: puppet + uids: + - '60' +- id: generate_vms + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/generate_vms/generate_vms.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 800 + type: puppet + uids: + - '60' +- id: connectivity_tests + parameters: + cwd: / + puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/netconfig/connectivity_tests.pp + puppet_modules: /etc/puppet/modules + retries: null + timeout: 3600 + priority: 900 + type: puppet + uids: + - '60' +test_vm_image: + container_format: bare + disk_format: qcow2 + glance_properties: '' + img_name: TestVM + img_path: /usr/share/cirros-testvm/cirros-x86_64-disk.img + min_ram: 64 + os_name: cirros + public: 'true' +uid: '60' +use_cow_images: true +use_vcenter: false +user_node_name: Untitled (e7:0d) +vms_conf: +- cpu: 2 + id: 3 + ram: 2 +workloads_collector: + create_user: true + enabled: true + metadata: + group: general + label: Workloads Collector User + restrictions: + - action: hide + condition: 'true' + weight: 10 + password: QTVxAbyMabTFKgjafwCxQqVl + tenant: services + username: fuel_stats_user diff --git a/utils/generate_yamls.sh b/utils/generate_yamls.sh index f8e95e1..7851f37 100755 --- a/utils/generate_yamls.sh +++ b/utils/generate_yamls.sh @@ -70,6 +70,13 @@ function enable_nova_quota { fuel env --attributes --env $1 --upload } +function enable_vms_conf { + virt_node_ids=`fuel nodes --env $1 2>/dev/null | grep virt | awk '{print $1}'` + for id in $virt_node_ids ; do + fuel2 node create-vms-conf $id --conf '{"id":3,"ram":2,"cpu":2}' + done +} + function list_free_nodes { fuel nodes 2>/dev/null | grep discover | grep None | awk '{print $1}' } @@ -121,6 +128,12 @@ function generate_yamls { sleep 1 fi done + + #We need assigned "virt" role to enable vms_conf + if [ "${name/vms_conf}" != "$name" ] ; then + enable_vms_conf $env + fi + save_yamls $env store_yamls $env $name "$4" } @@ -162,3 +175,8 @@ clean_env 'test_neutron_tun' fuel env --create --name test_neutron_tun --rel 2 --net tun generate_yamls 'test_neutron_tun' 'neut_tun.l3ha.nova_quota' 'controller controller controller' 'primary-controller' clean_env 'test_neutron_tun' + +# Neutron tun + vms_conf +fuel env --create --name test_neutron_tun --rel 2 --net tun +generate_yamls 'test_neutron_tun' 'neut_tun.vms_conf' 'virt compute' 'virt' +clean_env 'test_neutron_tun'