Valentin Aitken created JCLOUDS-1242:
----------------------------------------
Summary: Openstack v3 - Deletion of security groups
Key: JCLOUDS-1242
URL: https://issues.apache.org/jira/browse/JCLOUDS-1242
Project: jclouds
Issue Type: New Feature
Reporter: Valentin Aitken
_This issue captures mail thread "OpenStack Compute (Nova) v3 API" from
10/02/17_
*Observed behavior*
Destroying a node provisioned on OpenStack v3 with openstack-nova against
fails to delete security groups.
{noformat}
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/functions/CleanupServer.java#L75
2017-02-10 18:21:06,547 DEBUG 106 j.headers [ager-z6VVUxiy-56] >> GET
https://xxxx.cloud.example:433/v2/691aa6d482aaaf7f73b16fffc18/os-create-server-ext/fb6d7ec3-e616-4336-a66a-49c550978e
HTTP/1.1
2017-02-10 18:21:06,548 DEBUG 106 j.headers [ager-z6VVUxiy-56] >> Accept:
application/json
2017-02-10 18:21:06,550 DEBUG 106 j.headers [ager-z6VVUxiy-56] >> X-Auth-Token:
3b10593348fe49
2017-02-10 18:21:07,512 DEBUG 106 j.headers [ager-z6VVUxiy-56] << HTTP/1.1 404
Not Found
2017-02-10 18:21:07,513 DEBUG 106 j.headers [ager-z6VVUxiy-56] <<
X-Compute-Request-Id: req-5b570f62-b380-488e-96e4-f70e9d04
2017-02-10 18:21:07,515 DEBUG 106 j.headers [ager-z6VVUxiy-56] << Connection:
close
2017-02-10 18:21:07,516 DEBUG 106 j.headers [ager-z6VVUxiy-56] << Date: Fri, 10
Feb 2017 16:21:07 GMT
2017-02-10 18:21:07,517 DEBUG 106 j.headers [ager-z6VVUxiy-56] << Content-Type:
text/plain; charset=UTF-8
2017-02-10 18:21:07,518 DEBUG 106 j.headers [ager-z6VVUxiy-56] <<
Content-Length: 52
2017-02-10 18:21:07,520 DEBUG 106 j.wire [ager-z6VVUxiy-56] << "404 Not
Found[\n]"
2017-02-10 18:21:07,521 DEBUG 106 j.wire [ager-z6VVUxiy-56] << "[\n]"
2017-02-10 18:21:07,522 DEBUG 106 j.wire [ager-z6VVUxiy-56] << "The resource
could not be found.[\n]"
2017-02-10 18:21:07,523 DEBUG 106 j.wire [ager-z6VVUxiy-56] << "[\n]"
{noformat}
*Desired behavior*
jclouds openstack-nova provider to delete security groups for OpenStack v3
(Mitaka)
{quote}
Currently you can use org.jclouds.openstack.nova.v2_0.NovaApi against v3 but
there are some differences which I wonder how to tackle.
Two questions.
1. I'd like to check community's opinion regarding writing code for OpenStack
Nova v3 \[1\].
What are people's thoughts, do you intend to drop v2 support and
move classes from org.jclouds.openstack.nova.v2_0 to
org.jclouds.openstack.nova.v3_0 or you want to support both?
_This question is related to JCLOUDS-114_
2. My 1st question comes from a problem I hit with destroying security groups
in v3 on destroyNode.
It is that Createserverext ( os-create-server-ext API call) has been removed
from OpenStack v3 \[2\].
Security groups are now available in NodeMetadata and for v3 that extension
is not needed.
Regards,
Valentin Aitken!
\[1\]
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/NovaApi.java#L53
\[2\] https://wiki.openstack.org/wiki/NovaAPIv2tov3
{quote}
My personal preference for jclouds master branch is to rename v3 package to v2
and do necessary API changes in master without considering Openstack v2 there.
Openstack Liberty is EOL since 2 years.
Check https://releases.openstack.org/
Who is interested in making changes I suggest doing them against older branch.
However if community wants to support both, Ignassi gave good suggestion on the
initial mail thread on 13/02/17
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)