$ ssh-keygen -f "/home/stack/.ssh/known_hosts" -R localhost
$ ssh localhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Demo, Slide: https://drive.google.com/drive/folders/1USSoIsBgvRbbdUfCVKE0bLX5TTUHeOXC?usp=sharing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vm에서 metadata 받아오기 | |
-------------------------- | |
Icloud-init이 169.254.169.254/latest/meta-data로 인스턴스 정보를 받아옴 | |
IP를 할당받은 VM은 바로 메타데이터 서버로 vm 메타데이터를 요청한다. 메타데이터 주소는 169.254.169.254를 사용하며, | |
vm네트워크의 route를 따라 네트워크 노드의 qrouter 네임스페이스까지 온 후 iptables의 nat된 규칙에 따라 controller의 neutron-ns-metadata-proxy가 요청을 처리한다. | |
아래는 router네임스페이스에서 iptables 규칙으로 169.254.169.254요청이 들어오면 9697 포트로 redirect하며, 9697포트는 14870 python프로세스, 즉 neutron-ns-metadata-proxy서비스가 Listen중입을 확인한 것이다. | |