Activity log for bug #1766572

Date Who What changed Old value New value Message
2018-04-24 12:28:15 jjj jjj bug added bug
2018-04-24 12:42:35 jjj jjj description Hello all, I have problem with deploy openstack.with juju charm on MASS. Reason is ceph-osd. My setup is: MAAS version: 2.3.0 controller 2.3.5 Ubuntu 16.04 xenial juju charm bundle: Openstack Base Xenial Queens (openstack-charmers-next) ceph-osd config: ceph-osd: bluestore: false osd-reformat: true osd-devices: /dev/vdb /dev/vdc /dev/vdd osd-journal: /dev/vde osd-journal-size: 10000 source: cloud:xenial-queens/proposed Error result after create relation ceph-mon and ceph-osd is: unit-ceph-osd-22: 14:19:01 DEBUG unit.ceph-osd/22.mon-relation-changed partx: /dev/vdb: failed to read partition table unit-ceph-osd-22: 14:19:01 DEBUG worker.uniter.jujuc running hook tool "juju-log" unit-ceph-osd-22: 14:19:01 DEBUG unit.ceph-osd/22.juju-log mon:198: get partitions: [] unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed Creating new GPT entries. unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed Warning: The kernel is still using the old partition table. unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed The new table will be used at the next reboot or after you unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed run partprobe(8) or kpartx(8) unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed GPT data structures destroyed! You may now partition the disk using fdisk or unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed other utilities. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed Creating new GPT entries. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed Warning: The kernel is still using the old partition table. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed The new table will be used at the next reboot or after you unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed run partprobe(8) or kpartx(8) unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed The operation has completed successfully. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1+0 records in unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1+0 records out unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00399044 s, 263 MB/s unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 100+0 records in unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 100+0 records out unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 51200 bytes (51 kB, 50 KiB) copied, 0.000271266 s, 189 MB/s unit-ceph-osd-22: 14:19:05 DEBUG unit.ceph-osd/22.mon-relation-changed Internal error: Unable to create new logical volume with no extents. unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed Traceback (most recent call last): unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 562, in <module> unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed hooks.execute(sys.argv) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/charmhelpers/core/hookenv.py", line 801, in execute unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed self._hooks[hook_name]() unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 489, in mon_relation unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed prepare_disks_and_activate() unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 392, in prepare_disks_and_activate unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed config('bluestore')) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1470, in osdize unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed bluestore) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1513, in osdize_dev unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed bluestore) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1640, in _ceph_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed osd_fsid)) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1827, in _allocate_logical_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed lvm.create_logical_volume(lv_name, vg_name, size) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/charmhelpers/contrib/storage/linux/lvm.py", line 181, in create_logical_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed '-n', lv_name, volume_group unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/usr/lib/python3.5/subprocess.py", line 581, in check_call unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed raise CalledProcessError(retcode, cmd) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed subprocess.CalledProcessError: Command '['lvcreate', '--yes', '-l', '100%FREE', '-n', 'osd-data-284b123f-8dc0-414d-9450-1d1e7b2d509f', 'ceph-95d95da0-cf10-40f2-8acb-78b03eecd9da']' returned non-zero exit status 5 unit-ceph-osd-22: 14:19:06 ERROR juju.worker.uniter.operation hook "mon-relation-changed" failed: exit status 1 unit-ceph-osd-22: 14:19:06 DEBUG juju.worker.uniter.operation lock released unit-ceph-osd-22: 14:19:06 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook unit-ceph-osd-22: 14:19:06 DEBUG juju.worker.uniter [AGENT-STATUS] error: hook failed: "mon-relation-changed" so problem is Unable to create new logical volume with no extents. Free PE/Size for VG is 0/0 --- Volume group --- VG Name ceph-95d95da0-cf10-40f2-8acb-78b03eecd9da System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 1.82 TiB PE Size 4.00 MiB Total PE 476927 Alloc PE / Size 476927 / 1.82 TiB Free PE / Size 0 / 0 VG UUID O1uNrS-9n2U-km2e-5a73-VGPx-sUUz-heuX8q partition info for /dev/vdb is: Disk /dev/vdb: 1.8 TiB, 2000381018112 bytes, 3906994176 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x186aac64 any idea? thx Jan Hello all, I have problem with deploy openstack.with juju charm on MASS. Reason is ceph-osd. My setup is: MAAS version: 2.3.0 controller 2.3.5 Ubuntu 16.04 xenial juju charm bundle: Openstack Base Xenial Queens (openstack-charmers-next) ceph-osd config:  ceph-osd:       bluestore: false       osd-reformat: true       osd-devices: /dev/vdb /dev/vdc /dev/vdd       osd-journal: /dev/vde       osd-journal-size: 10000       source: cloud:xenial-queens/proposed Error result after create relation ceph-mon and ceph-osd is: unit-ceph-osd-22: 14:19:01 DEBUG unit.ceph-osd/22.mon-relation-changed partx: /dev/vdb: failed to read partition table unit-ceph-osd-22: 14:19:01 DEBUG worker.uniter.jujuc running hook tool "juju-log" unit-ceph-osd-22: 14:19:01 DEBUG unit.ceph-osd/22.juju-log mon:198: get partitions: [] unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed Creating new GPT entries. unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed Warning: The kernel is still using the old partition table. unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed The new table will be used at the next reboot or after you unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed run partprobe(8) or kpartx(8) unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed GPT data structures destroyed! You may now partition the disk using fdisk or unit-ceph-osd-22: 14:19:03 DEBUG unit.ceph-osd/22.mon-relation-changed other utilities. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed Creating new GPT entries. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed Warning: The kernel is still using the old partition table. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed The new table will be used at the next reboot or after you unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed run partprobe(8) or kpartx(8) unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed The operation has completed successfully. unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1+0 records in unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1+0 records out unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00399044 s, 263 MB/s unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 100+0 records in unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 100+0 records out unit-ceph-osd-22: 14:19:04 DEBUG unit.ceph-osd/22.mon-relation-changed 51200 bytes (51 kB, 50 KiB) copied, 0.000271266 s, 189 MB/s unit-ceph-osd-22: 14:19:05 DEBUG unit.ceph-osd/22.mon-relation-changed Internal error: Unable to create new logical volume with no extents. unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed Traceback (most recent call last): unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 562, in <module> unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed hooks.execute(sys.argv) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/charmhelpers/core/hookenv.py", line 801, in execute unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed self._hooks[hook_name]() unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 489, in mon_relation unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed prepare_disks_and_activate() unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/mon-relation-changed", line 392, in prepare_disks_and_activate unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed config('bluestore')) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1470, in osdize unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed bluestore) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1513, in osdize_dev unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed bluestore) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1640, in _ceph_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed osd_fsid)) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "lib/ceph/utils.py", line 1827, in _allocate_logical_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed lvm.create_logical_volume(lv_name, vg_name, size) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-22/charm/hooks/charmhelpers/contrib/storage/linux/lvm.py", line 181, in create_logical_volume unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed '-n', lv_name, volume_group unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed File "/usr/lib/python3.5/subprocess.py", line 581, in check_call unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed raise CalledProcessError(retcode, cmd) unit-ceph-osd-22: 14:19:06 DEBUG unit.ceph-osd/22.mon-relation-changed subprocess.CalledProcessError: Command '['lvcreate', '--yes', '-l', '100%FREE', '-n', 'osd-data-284b123f-8dc0-414d-9450-1d1e7b2d509f', 'ceph-95d95da0-cf10-40f2-8acb-78b03eecd9da']' returned non-zero exit status 5 unit-ceph-osd-22: 14:19:06 ERROR juju.worker.uniter.operation hook "mon-relation-changed" failed: exit status 1 unit-ceph-osd-22: 14:19:06 DEBUG juju.worker.uniter.operation lock released unit-ceph-osd-22: 14:19:06 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook unit-ceph-osd-22: 14:19:06 DEBUG juju.worker.uniter [AGENT-STATUS] error: hook failed: "mon-relation-changed" so problem is Unable to create new logical volume with no extents. Free PE/Size for VG is 0/0   --- Volume group ---   VG Name ceph-95d95da0-cf10-40f2-8acb-78b03eecd9da   System ID   Format lvm2   Metadata Areas 1   Metadata Sequence No 2   VG Access read/write   VG Status resizable   MAX LV 0   Cur LV 1   Open LV 0   Max PV 0   Cur PV 1   Act PV 1   VG Size 1.82 TiB   PE Size 4.00 MiB   Total PE 476927   Alloc PE / Size 476927 / 1.82 TiB   Free PE / Size 0 / 0   VG UUID O1uNrS-9n2U-km2e-5a73-VGPx-sUUz-heuX8q  partition info for /dev/vdb is: Disk /dev/vdb: 1.8 TiB, 2000381018112 bytes, 3906994176 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x186aac64 any idea? thx Jan