cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

api,server: custom dns for guest network

Open shwstppr opened this issue 2 years ago • 109 comments

Description

Adds option to provide custom DNS servers for isolated network, shared network and VPC tier. New API parameters added in createNetwork API along with the corresponding response parameters.

Doc PR: https://github.com/apache/cloudstack-documentation/pull/276

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] Enhancement (improves an existing feature and functionality)
  • [ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [x] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

add-guest-network

add-shared-network

Screenshot from 2022-06-20 17-38-46

How Has This Been Tested?

Manually ran new marvin test:

[root@pr6425-t4310-vmware-67u3-marvin marvin]# nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=./pr6425-t4310-vmware-67u3-advanced-cfg -s -a tags=advanced --hypervisor=VMware tests/component/test_network_vpc_custom_dns.py 
/usr/local/lib/python3.6/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.hazmat.backends import default_backend

==== Marvin Init Started ====

=== Marvin Parse Config Successful ===

=== Marvin Setting TestData Successful===

==== Log Folder Path: /marvin/MarvinLogs/Jun_16_2022_07_07_09_BQCG9M All logs will be available here ====

=== Marvin Init Logging Successful===

==== Marvin Init Successful ====
====Trying SSH Connection: Host:10.0.34.87 User:root                                   Port:22 RetryCnt:60===
===SSH to Host 10.0.34.87 port : 22 SUCCESSFUL===
{Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa -ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.0.36.189 cat /etc/resolv.conf via Host: 10.0.34.87} {returns: ['nameserver 5.5.5.5', 'nameserver 6.6.6.6', 'nameserver 2001:4860:4860::5555', 'nameserver 2001:4860:4860::6666']}
=== TestName: test_01_verify_network_dns | Status : SUCCESS ===

====Trying SSH Connection: Host:10.0.34.87 User:root                                   Port:22 RetryCnt:60===
====Trying SSH Connection: Host:10.0.34.87 User:root                                   Port:22 RetryCnt:60===
===SSH to Host 10.0.34.87 port : 22 SUCCESSFUL===
===SSH to Host 10.0.34.87 port : 22 SUCCESSFUL===
{Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa -ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.0.36.190 cat /etc/resolv.conf via Host: 10.0.34.87} {returns: ['nameserver 5.5.5.5', 'nameserver 6.6.6.6', 'nameserver 2001:4860:4860::5555', 'nameserver 2001:4860:4860::6666']}
{Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa -ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.0.36.190 cat /etc/resolv.conf via Host: 10.0.34.87} {returns: ['nameserver 5.5.5.5', 'nameserver 6.6.6.6', 'nameserver 2001:4860:4860::5555', 'nameserver 2001:4860:4860::6666']}
=== TestName: test_01_verify_vpc_dns | Status : SUCCESS ===

=== Final results are now copied to: /marvin//MarvinLogs/test_network_vpc_custom_dns_2CPKHK ===

shwstppr avatar May 31 '22 07:05 shwstppr

is this open for a review yet @shwstppr ?

DaanHoogland avatar Jun 03 '22 09:06 DaanHoogland

is this open for a review yet @shwstppr ?

@DaanHoogland no, not yet

shwstppr avatar Jun 03 '22 09:06 shwstppr

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Jun 06 '22 09:06 acs-robot

@blueorangutan package

shwstppr avatar Jun 06 '22 09:06 shwstppr

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 06 '22 09:06 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3532

blueorangutan avatar Jun 06 '22 10:06 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_check_mark: suse15. SL-JID 3537

blueorangutan avatar Jun 07 '22 11:06 blueorangutan

@blueorangutan test

shwstppr avatar Jun 07 '22 11:06 shwstppr

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jun 07 '22 12:06 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6425 (SL-JID-1694)

blueorangutan avatar Jun 08 '22 10:06 blueorangutan

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 08 '22 11:06 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_check_mark: suse15. SL-JID 3542

blueorangutan avatar Jun 08 '22 13:06 blueorangutan

@blueorangutan test

shwstppr avatar Jun 08 '22 17:06 shwstppr

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jun 08 '22 17:06 blueorangutan

Trillian test result (tid-4314) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 39336 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6425-t4314-kvm-centos7.zip Smoke tests completed. 97 look OK, 0 have errors Only failed tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Jun 09 '22 04:06 blueorangutan

@blueorangutan package

shwstppr avatar Jun 15 '22 06:06 shwstppr

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 15 '22 07:06 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6425 (SL-JID-1734)

blueorangutan avatar Jun 15 '22 07:06 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3571

blueorangutan avatar Jun 15 '22 07:06 blueorangutan

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Jun 15 '22 09:06 acs-robot

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6425 (SL-JID-1737)

blueorangutan avatar Jun 15 '22 09:06 blueorangutan

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Jun 16 '22 07:06 acs-robot

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Jun 16 '22 07:06 blueorangutan

@blueorangutan package

shwstppr avatar Jun 16 '22 07:06 shwstppr

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 16 '22 07:06 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6425 (SL-JID-1744)

blueorangutan avatar Jun 16 '22 07:06 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_check_mark: suse15. SL-JID 3578

blueorangutan avatar Jun 16 '22 07:06 blueorangutan

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Jun 16 '22 09:06 acs-robot

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Jun 16 '22 09:06 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6425 (SL-JID-1746)

blueorangutan avatar Jun 16 '22 09:06 blueorangutan