Fuelmenu config-gen issue

Bug #1327217 reported by Aleksey Zvyagintsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Matthew Mosesohn

Bug Description

=== What try to-do:
Make automation process of fuel-master installation
Edit settings.yaml for default settings and run fuelmenu for re-generating configures.

But got unexpected result.

cat /etc/astute.yaml && echo 'Should be' && cat /usr/lib/python2.6/site-packages/fuelmenu/settings.yaml
.....
ADMIN_NETWORK:
  dhcp_pool_start: 172.18.165.160
  netmask: 255.255.255.192
  static_pool_start: 172.18.165.130
  dhcp_pool_end: 172.18.165.190
  static_pool_end: 172.18.165.159
......
Should be
.....
ADMIN_NETWORK:
  netmask: 255.255.255.192
  cidr: 172.18.165.128/26
  static_pool_start: 172.18.165.160
  static_pool_end: 172.18.165.171
  dhcp_pool_start: 172.18.165.172
  dhcp_pool_end: 172.18.165.189
.....
#unused\correct values skipped.

=== How-to reproduce:
modify /usr/lib/python2.6/site-packages/fuelmenu/settings.yaml
fuelmenu --save-only --iface=eth0
cat /etc/astute.yaml

=== Problem in :
/usr/lib/python2.6/site-packages/fuelmenu/fuelmenu.py
    try:
        half = int(len(net_ip_list) / 2)
        #In most cases, skip 10.XXX.0.1
        static_pool = list(net_ip_list[1:half])
        dhcp_pool = list(net_ip_list[half:])
        static_start = str(static_pool[0])
        static_end = str(static_pool[-1])
        dynamic_start = str(dhcp_pool[0])
        dynamic_end = str(dhcp_pool[-1])
===
Version:
VERSION:
  mirantis: "yes"
  production: "docker"
  release: "5.0"
  api: "1.0"
  build_number: "26"
  build_id: "2014-05-27_05-51-41"
  astute_sha: "a7eac46348dc77fc2723c6fcc3dbc66cc1a83152"
  fuellib_sha: "2f79c0415159651fc1978d99bd791079d1ae4a06"
  ostf_sha: "a8b7660082a6f152794c610d6abe30d360fd577d"
  nailgun_sha: "bd09f89ef56176f64ad5decd4128933c96cb20f4"
  fuelmain_sha: "505741e4f431f85a8d0252fc42754d10c0326c1a"

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 5.1
importance: Undecided → Medium
status: New → Confirmed
Dima Shulyak (dshulyak)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Matthew Mosesohn (raytrac3r)
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Aleksey, what is your concern here? netmask and cidr are actually ignored and are deprecated options. The order of the parameters written to astute.yaml is not in order, but it could be fixed (with OrderedDict) if it's your concern.

The selected IP addresses for the ranges seem normal according to your netmasks chosen, so what is wrong there?

Changed in fuel:
status: Confirmed → Incomplete
Changed in fuel:
status: Incomplete → Invalid
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.