Project

Profile

Help

Task #8012

Add function for printing ipv6 address inside network config

Added by Mark Zaslavskiy over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Category:
mdbci features
Sprint/Milestone:
Start date:
08.03.2017
Due date:
% Done:

0%

Estimated time:
Target branch:
Test scenario:

https://github.com/OSLL/mdbci/pull/359/files

Testing;

./mdbci --ipv6 --template confs/libvirt_lite.json --override generate LIBVIRT_IPV6

./mdbci --template confs/docker_lite.json --override generate DOCKER_IPV6

./mdbci --ipv6 up LIBVIRT_IPV6/

./mdbci --ipv6 up DOCKER_IPV6/

Expectation:

in files LIBVIRT_IPV6_network_config, DOCKER_IPV6_network_config

you will find <CONFIG_NODE>_network6=<VALUE> field. Try to ssh to value of that fields: ssh -6 vagrant@<VALUE> (for docker add interface like: ssh -6 vagrant@<VALUE>%docker0) you will be prompted to add key to known hosts and password (vagrant), and finally yout should be inside VM.


Description

1. For each VM add key <VM_name>_ipv6

http://superuser.com/questions/389766/linux-bash-how-to-get-interfaces-ipv6-address

2. Add command line flag for enabling/disabling this feature

History

#1 Updated by Alexander Kaluzhny over 4 years ago

[vagrant@328e238f1865 ~]$ mysql -uskysql -pskysql -h fe80::242:ac11:2%eth0
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 527
Server version: 10.0.29-MariaDB-wsrep MariaDB Server, wsrep_25.16.rc3fc46e

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> exit
Bye

первая команда вроде сработала?

timofey.turenko [16:36]
да, с eth0 работает

alexander.kaluzhniy [16:37]
т.е. с внутренним интерфейсом виртуальной машины надо тогда указывать

Добавить внутренний интерфес ВМ соответствуйющий ipv6 адресу в файл network_config

#2 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from New to Active / In progress

#3 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy
  • Test scenario updated (diff)

https://github.com/OSLL/mdbci/pull/359/files

Testing;

./mdbci --ipv6 --template confs/libvirt_lite.json --override generate LIBVIRT_IPV6

./mdbci --template confs/docker_lite.json --override generate DOCKER_IPV6

./mdbci --ipv6 up LIBVIRT_IPV6/

./mdbci --ipv6 up DOCKER_IPV6/

Expectation:

in files LIBVIRT_IPV6_network_config, DOCKER_IPV6_network_config

you will find <CONFIG_NODE>_network6=<VALUE> field. Try to ssh to value of that fields: ssh -6 vagrant@<VALUE> (for docker add interface like: ssh -6 vagrant@<VALUE>%docker0) you will be prompted to add key to known hosts and password (vagrant), and finally yout should be inside VM.

#4 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF