create-target action fails "No such path"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceph iSCSI Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Creating a target as described in the readme, using the create-target action, fails. For example:
```
juju run ceph-iscsi/leader create-target \
client-
client-
client-
image-size=50M \
image-
ec-rbd-
rbd-
```
Juju debug-log output:
```
unit-ceph-iscsi-3: 04:29:25 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:26 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:27 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:28 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:30 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:31 INFO unit.ceph-
unit-ceph-iscsi-3: 04:29:31 ERROR unit.ceph-
unit-ceph-iscsi-3: 04:29:31 ERROR unit.ceph-
unit-ceph-iscsi-3: 04:29:32 ERROR unit.ceph-
unit-ceph-iscsi-3: 04:29:32 ERROR unit.ceph-
Traceback (most recent call last):
File "/var/lib/
main(
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "/var/lib/
gw_
File "/var/lib/
self.run(
File "/var/lib/
raise RuntimeError(
RuntimeError: gwcli failed with 255
```
Changed in charm-ceph-iscsi: | |
status: | Incomplete → Invalid |
For more information, I have the recommended 2 units deployed, and the charm status is active/idle. It's related to a working ceph-mon.
If I manually try to create the host that it's complaining is missing, I see this error:
``` target. ..csi-igw/ hosts> create iqn.1993- 08.org. debian: 01:a4b5157f8afe
/iscsi-
Failed: Clients can not be defined until a HA configuration has been defined (>2 gateways)
```
I'll investigate further for HA issues, but running `sudo gwcli ls` on each node results in:
first node (the one where I'm running the the action on - the ip address is the ip of that node):
``` ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .. [DiscoveryAuth: None, Targets: 1] 01.com. ubuntu. iscsi-gw: iscsi-igw ....... ....... ....... ....... ....... ....... ....... ....... . [Auth: None, Gateways: 1] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... . [Disks: 0] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... . [Up: 1/1, Portals: 1] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .. [192.168.151.128 (UP)] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... [Groups : 0] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ... [Auth: ACL_ENABLED, Hosts: 0]
...
o- iscsi-targets .......
o- iqn.2003-
o- disks .......
o- gateways .......
| o- node-2.maas .......
o- host-groups .......
o- hosts .......
```
And on the second node - the same exept for:
``` ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .... [192.168.151.128 (UNKNOWN)]
| o- node-2.maas .......
```
And the second one also starts with a warning:
```
1 gateway is inaccessible - updates will be disabled
```