Fix: enforce singleton patten openstack connection #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OpenStack Connection Manager 개선
Overview (한글)
OpenStack Connection Manager를 모듈 레벨 싱글턴으로 변경하여 연결 관리를 개선하고, 불필요한 TODO 주석을 제거했습니다.
Key Changes (주요 변경사항)
OpenStackConnectionManager인스턴스를 모듈 레벨에서 생성하여 싱글턴 패턴 적용get_openstack_conn()함수에서 모듈 레벨 싱글턴 인스턴스 사용Technical Details (기술적 세부사항)
Before
After
Related Issues (관련 이슈)
Additional Context (추가 정보)
OpenStack SDK는
keystoneauth1을 사용하여 토큰 만료 시 자동 재인증을 지원합니다 (allow_reauth=True가 기본값). 따라서 토큰 만료 관련 예외 처리는 SDK에서 자동으로 처리되므로 별도 구현이 불필요합니다.Overview
Improved OpenStack Connection Manager by implementing module-level singleton pattern and removed unnecessary TODO comments.
Key Changes
OpenStackConnectionManagerinstance at module level for singleton patternget_openstack_conn()function to use module-level singleton instanceRelated Issues
Additional Context
OpenStack SDK supports automatic re-authentication on token expiration using
keystoneauth1withallow_reauth=Trueas default. Therefore, manual token expiration handling is unnecessary as the SDK handles it automatically.