2024-11-10 21:59:14,846 - INFO - Domain Default found not creating
2024-11-10 21:59:15,024 - INFO - Project ctest-TestBasicPolicy-88945236 not found, creating it
2024-11-10 21:59:15,500 - INFO - Created Project:ctest-TestBasicPolicy-88945236, ID : bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925
2024-11-10 21:59:17,014 - INFO - ================================================================================
2024-11-10 21:59:17,014 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 21:59:17,014 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-11-10 21:59:17,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.5': '0'}} with
2024-11-10 21:59:17,268 - INFO - Initial checks done. Running the testcase now
2024-11-10 21:59:17,268 - INFO -
2024-11-10 21:59:17,844 - DEBUG - Response for create_network : {'network': {'id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'name': 'ctest-vn-30009739', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-30009739'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:18,007 - DEBUG - Response for create_subnet : {'subnet': {'id': '276a4930-5e32-4648-8885-1a7a3189bcec', 'name': '', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'network_id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'ip_version': 4, 'cidr': '45.231.188.128/26', 'allocation_pools': [{'start': '45.231.188.130', 'end': '45.231.188.190'}], 'gateway_ip': '45.231.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.231.188.130', 'tags': [], 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925'}}
2024-11-10 21:59:18,030 - INFO - Created VN ctest-vn-30009739
2024-11-10 21:59:18,086 - DEBUG - VN ctest-vn-30009739 UUID is afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:18,427 - DEBUG - Response for create_network : {'network': {'id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'name': 'ctest-vn-90870592', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-90870592'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:18,645 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd43feb25-7671-472a-a3a0-d63cfbfb9555', 'name': '', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'network_id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'ip_version': 4, 'cidr': '146.223.178.64/26', 'allocation_pools': [{'start': '146.223.178.66', 'end': '146.223.178.126'}], 'gateway_ip': '146.223.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.223.178.66', 'tags': [], 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925'}}
2024-11-10 21:59:18,669 - INFO - Created VN ctest-vn-90870592
2024-11-10 21:59:18,730 - DEBUG - VN ctest-vn-90870592 UUID is ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:18,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-11-10 21:59:19,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'name': 'ctest-vn-30009739', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['276a4930-5e32-4648-8885-1a7a3189bcec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-30009739'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']], 'subnet_ipam': [{'subnet_cidr': '45.231.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:19,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'name': 'ctest-vn-90870592', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d43feb25-7671-472a-a3a0-d63cfbfb9555'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-90870592'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']], 'subnet_ipam': [{'subnet_cidr': '146.223.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:59:19,654 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-10 21:59:19,949 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-10 21:59:19,982 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507
2024-11-10 21:59:19,997 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925
2024-11-10 21:59:20,079 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,095 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,110 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc
2024-11-10 21:59:20,120 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc
2024-11-10 21:59:20,129 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/084250df-0d52-42f5-8198-f9427ac0a583
2024-11-10 21:59:20,144 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:59:20,144 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,165 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc
2024-11-10 21:59:20,189 - INFO - Verified VN network id 8 for VN afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,189 - INFO - Verifications in API Server for VN ctest-vn-30009739 passed
2024-11-10 21:59:20,189 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,207 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc
2024-11-10 21:59:20,217 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc
2024-11-10 21:59:20,226 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/084250df-0d52-42f5-8198-f9427ac0a583
2024-11-10 21:59:20,243 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88945236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12669152704389989642', 'uuid-lslong': '9228276188515016500'}, 'enable': 'true', 'created': '2024-11-10T21:59:17', 'last-modified': '2024-11-10T21:59:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065813'}
2024-11-10 21:59:20,251 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:59:20,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30009739 passed
2024-11-10 21:59:20,252 - DEBUG - ====Verifying policy data for ctest-vn-30009739 in API_Server ======
2024-11-10 21:59:20,252 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-10 21:59:20,260 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507
2024-11-10 21:59:20,277 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925
2024-11-10 21:59:20,366 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34
2024-11-10 21:59:20,387 - DEBUG - ==>Verifying data for policy with id: 4a342adb-525d-46d7-8281-ec7ddd530b3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']
2024-11-10 21:59:20,387 - INFO - VN ctest-vn-30009739 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:59:20,388 - DEBUG - Verifying the vn in opserver
2024-11-10 21:59:20,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739 virtual network link through opserver 10.0.0.47
2024-11-10 21:59:20,388 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-10 21:59:20,686 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-10 21:59:20,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739?flat'}
2024-11-10 21:59:20,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739 is found in opserver
2024-11-10 21:59:20,772 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:59:20,778 - DEBUG - VRF ids for VN ctest-vn-30009739: {}
2024-11-10 21:59:20,778 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-10 21:59:20,787 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507
2024-11-10 21:59:20,801 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925
2024-11-10 21:59:20,883 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:20,900 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:20,915 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf
2024-11-10 21:59:20,925 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf
2024-11-10 21:59:20,934 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/cb1f8be6-c42f-49d2-8e3d-43c15761d849
2024-11-10 21:59:20,942 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:59:20,943 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:20,958 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf
2024-11-10 21:59:20,982 - INFO - Verified VN network id 9 for VN ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:20,982 - INFO - Verifications in API Server for VN ctest-vn-90870592 passed
2024-11-10 21:59:20,982 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:20,998 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf
2024-11-10 21:59:21,009 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf
2024-11-10 21:59:21,018 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/cb1f8be6-c42f-49d2-8e3d-43c15761d849
2024-11-10 21:59:21,033 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88945236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18385320128157534585', 'uuid-lslong': '12814408126503968267'}, 'enable': 'true', 'created': '2024-11-10T21:59:18', 'last-modified': '2024-11-10T21:59:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.583867'}
2024-11-10 21:59:21,040 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:59:21,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90870592 passed
2024-11-10 21:59:21,040 - DEBUG - ====Verifying policy data for ctest-vn-90870592 in API_Server ======
2024-11-10 21:59:21,040 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-11-10 21:59:21,051 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507
2024-11-10 21:59:21,066 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925
2024-11-10 21:59:21,151 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b
2024-11-10 21:59:21,167 - DEBUG - ==>Verifying data for policy with id: 4a342adb-525d-46d7-8281-ec7ddd530b3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']
2024-11-10 21:59:21,167 - INFO - VN ctest-vn-90870592 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:59:21,167 - DEBUG - Verifying the vn in opserver
2024-11-10 21:59:21,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592 virtual network link through opserver 10.0.0.47
2024-11-10 21:59:21,167 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-11-10 21:59:21,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592?flat'}
2024-11-10 21:59:21,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592 is found in opserver
2024-11-10 21:59:21,192 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:59:21,198 - DEBUG - VRF ids for VN ctest-vn-90870592: {}
2024-11-10 21:59:21,260 - DEBUG - Services list from nova: [