add-disk action returns failed status (and disk is actually added)

Bug #1774694 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Fix Released
Critical
Frode Nordahl

Bug Description

2018-06-01 18:12:15 DEBUG add-disk partx: /dev/vdb: failed to read partition table
2018-06-01 18:12:15 DEBUG juju-log get partitions: []
2018-06-01 18:12:15 DEBUG add-disk Failed to find physical volume "/dev/vdb".
2018-06-01 18:12:18 INFO juju-log osdize cmd: ['ceph-disk', 'prepare', '--fs-type', 'xfs', '/dev/vdb']
2018-06-01 18:12:19 DEBUG add-disk Creating new GPT entries.
2018-06-01 18:12:19 DEBUG add-disk Setting name!
2018-06-01 18:12:19 DEBUG add-disk partNum is 1
2018-06-01 18:12:19 DEBUG add-disk REALLY setting name!
2018-06-01 18:12:19 DEBUG add-disk The operation has completed successfully.
2018-06-01 18:12:21 DEBUG add-disk Setting name!
2018-06-01 18:12:21 DEBUG add-disk partNum is 0
2018-06-01 18:12:21 DEBUG add-disk REALLY setting name!
2018-06-01 18:12:21 DEBUG add-disk The operation has completed successfully.
2018-06-01 18:12:21 DEBUG add-disk meta-data=/dev/vdb1 isize=2048 agcount=4, agsize=1155102 blks
2018-06-01 18:12:21 DEBUG add-disk = sectsz=512 attr=2, projid32bit=1
2018-06-01 18:12:21 DEBUG add-disk = crc=1 finobt=1, sparse=0
2018-06-01 18:12:21 DEBUG add-disk data = bsize=4096 blocks=4620408, imaxpct=25
2018-06-01 18:12:21 DEBUG add-disk = sunit=0 swidth=0 blks
2018-06-01 18:12:21 DEBUG add-disk naming =version 2 bsize=4096 ascii-ci=0 ftype=1
2018-06-01 18:12:21 DEBUG add-disk log =internal log bsize=4096 blocks=2560, version=2
2018-06-01 18:12:21 DEBUG add-disk = sectsz=512 sunit=0 blks, lazy-count=1
2018-06-01 18:12:21 DEBUG add-disk realtime =none extsz=4096 blocks=0, rtextents=0
2018-06-01 18:12:22 DEBUG add-disk Warning: The kernel is still using the old partition table.
2018-06-01 18:12:22 DEBUG add-disk The new table will be used at the next reboot or after you
2018-06-01 18:12:22 DEBUG add-disk run partprobe(8) or kpartx(8)
2018-06-01 18:12:22 DEBUG add-disk The operation has completed successfully.
2018-06-01 18:12:22 DEBUG add-disk Traceback (most recent call last):
2018-06-01 18:12:22 DEBUG add-disk File "/var/lib/juju/agents/unit-ceph-osd-0/charm/actions/add-disk", line 68, in <module>
2018-06-01 18:12:22 DEBUG add-disk bucket=hookenv.action_get("bucket"))
2018-06-01 18:12:22 DEBUG add-disk File "/var/lib/juju/agents/unit-ceph-osd-0/charm/actions/add-disk", line 44, in add_device
2018-06-01 18:12:22 DEBUG add-disk osd = mounts[0]
2018-06-01 18:12:22 DEBUG add-disk TypeError: 'filter' object is not subscriptable

Revision history for this message
Frode Nordahl (fnordahl) wrote :

Related to new workflow developed in response to bug 1698154

Changed in charm-ceph-osd:
milestone: none → 18.05
importance: Undecided → Critical
Frode Nordahl (fnordahl)
summary: - add-disk action returns failed status, but disk is actually added
+ add-disk action returns failed status (and disk is actually added)
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Changed in charm-ceph-osd:
status: New → In Progress
assignee: nobody → Frode Nordahl (fnordahl)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (master)

Reviewed: https://review.openstack.org/572157
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=4368f6b545c6533a9fa5e9be4a7a2c9484391772
Submitter: Zuul
Branch: master

commit 4368f6b545c6533a9fa5e9be4a7a2c9484391772
Author: Frode Nordahl <email address hidden>
Date: Mon Jun 4 18:08:24 2018 +0200

    Fix subscription of filter object error

    In Python 3 filter() built-in returns a iterator and not a list

    Change-Id: I641565109b0dcc816a66d3ca3eb578fb9ed44a1a
    Closes-Bug: #1774694

Changed in charm-ceph-osd:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-ceph-osd:
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.