IT tech/OpenStack
Openstack 네트워크 제거 방법
라따뚜히
2023. 4. 28. 13:27
반응형
SMALL
환경: Ubuntu 20.04
오픈스택을 구성하던 중 네트워크 하나를 제거하려다가 에러가 발생했다.
root@controller ~(keystone)# openstack subnet delete b200e1ee-f211-4e11-9134-359c8d36849d
Failed to delete subnet with name or ID 'b200e1ee-f211-4e11-9134-359c8d36849d': ConflictException: 409: Client Error for url: http://115.68.252.5:9696/v2.0/subnets/b200e1ee-f211-4e11-9134-359c8d36849d, Unable to complete operation on subnet b200e1ee-f211-4e11-9134-359c8d36849d: One or more ports have an IP allocation from this subnet.
1 of 1 subnets failed to delete.
|
이미 이 네트워크에 연결되어 있는 라우터 및 기타 서비스가 있기 때문에 네트워크 삭제가 안되는 것이다.
이럴 경우 이 네트워크에 연결된 라우터부터 순차적으로 제거해준다.
# neutron router-gateway-clear router-ID external-network-ID
# neutron router-interface-delete router-ID subnet-ID
|
위와 같이 실행해준 다음 네트워크 및 서브넷을 제거해주면 된다.
참고로 제거 명령은 다음과 같다.
# openstack subnet delete subnet-ID
# openstack network delete network-ID
|
이렇게 하면 성공적으로 해당 네트워크가 제거된다.
네트워크 제거 관련 설명은
https://docs.oracle.com/cd/E69402_01/html/E74916/gpcmb.html
이 사이트를 참고했다.
반응형
LIST