I have treied with several sequences of actions.
First i set show_multiple_locations = True
in /etc/glance/glance-api.conf
and restarted glance by: glance-control all restart
Flow 1
1) Created small image via Horizon GUI.
2) glance --os-image-api-version 2 location-add --url file:///etc/fstab f44eb9f7-2045-4118-b09b-fdfb71d58b2a
The administrator has disabled API access to image locations (HTTP 400)
OK
Flow 2
1) Created small image via GUI.
2) Added Metadata via Horizon url=file:///etc/fstab
1) glance image-create --disk-format raw --container-format bare
2) glance --os-image-api-version 2 location-add --url file:///etc/mtab 22f3e03e-1431-4f31-a1c6-0cfe52ae3c43
The administrator has disabled API access to image locations (HTTP 400)
OK
Flow 4
1) glance image-create --disk-format raw --container-format bare
2) glance image-update --location filesystem:///etc/passwd 3b3a5f9d-690b-42d7-bfbf-aef5d82d73d2
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
External source are not supported: 'filesystem:///etc/passwd'<br /><br />
</body>
Almost good, but CLI output could be like in Flow 1 and 3.
I have treied with several sequences of actions. locations = True glance- api.conf
First i set show_multiple_
in /etc/glance/
and restarted glance by: glance-control all restart
Flow 1
1) Created small image via Horizon GUI.
2) glance --os-image- api-version 2 location-add --url file:///etc/fstab f44eb9f7- 2045-4118- b09b-fdfb71d58b 2a
The administrator has disabled API access to image locations (HTTP 400)
OK
Flow 2
1) Created small image via GUI.
2) Added Metadata via Horizon url=file: ///etc/ fstab
3) glance image-download --file ~/small.iso f44eb9f7- 2045-4118- b09b-fdfb71d58b 2a
4) Checked contents of file - OK.
Flow 3
1) glance image-create --disk-format raw --container-format bare api-version 2 location-add --url file:///etc/mtab 22f3e03e- 1431-4f31- a1c6-0cfe52ae3c 43
2) glance --os-image-
The administrator has disabled API access to image locations (HTTP 400)
OK
Flow 4
1) glance image-create --disk-format raw --container-format bare
2) glance image-update --location filesystem: ///etc/ passwd 3b3a5f9d- 690b-42d7- bfbf-aef5d82d73 d2 ///etc/ passwd' <br /><br />
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
External source are not supported: 'filesystem:
</body>
Almost good, but CLI output could be like in Flow 1 and 3.