2025-01-04 18:51:33,931 - INFO - Domain Default found not creating
2025-01-04 18:51:34,085 - INFO - Project ctest-TestBasicPolicy-75972257 not found, creating it
2025-01-04 18:51:34,541 - INFO - Created Project:ctest-TestBasicPolicy-75972257, ID : ab4f2259-7315-48f2-9bfe-e9169d1f7690
2025-01-04 18:51:36,334 - INFO - ================================================================================
2025-01-04 18:51:36,334 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-04 18:51:36,334 - 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
2025-01-04 18:51:36,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.14': '0'}} with
2025-01-04 18:51:36,599 - INFO - Initial checks done. Running the testcase now
2025-01-04 18:51:36,599 - INFO -
2025-01-04 18:51:37,161 - DEBUG - Response for create_network : {'network': {'id': 'f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a', 'name': 'ctest-vn-39395791', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'project_id': 'ab4f2259731548f29bfee9169d1f7690', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-vn-39395791'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 18:51:37,362 - DEBUG - Response for create_subnet : {'subnet': {'id': '3834a092-dcc1-47d7-8008-dedb6bb16d69', 'name': '', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'network_id': 'f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a', 'ip_version': 4, 'cidr': '54.214.120.0/26', 'allocation_pools': [{'start': '54.214.120.2', 'end': '54.214.120.62'}], 'gateway_ip': '54.214.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.214.120.2', 'tags': [], 'project_id': 'ab4f2259731548f29bfee9169d1f7690'}}
2025-01-04 18:51:37,383 - INFO - Created VN ctest-vn-39395791
2025-01-04 18:51:37,438 - DEBUG - VN ctest-vn-39395791 UUID is f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:37,754 - DEBUG - Response for create_network : {'network': {'id': 'a4766af4-d479-4631-9101-7c800d269077', 'name': 'ctest-vn-84826016', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'project_id': 'ab4f2259731548f29bfee9169d1f7690', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-vn-84826016'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 18:51:38,010 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab72cc40-6ed1-4620-9330-3c5efaf6991e', 'name': '', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'network_id': 'a4766af4-d479-4631-9101-7c800d269077', 'ip_version': 4, 'cidr': '35.45.223.128/26', 'allocation_pools': [{'start': '35.45.223.130', 'end': '35.45.223.190'}], 'gateway_ip': '35.45.223.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.45.223.130', 'tags': [], 'project_id': 'ab4f2259731548f29bfee9169d1f7690'}}
2025-01-04 18:51:38,029 - INFO - Created VN ctest-vn-84826016
2025-01-04 18:51:38,086 - DEBUG - VN ctest-vn-84826016 UUID is a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:38,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791, 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-75972257:ctest-vn-84826016, 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]
2025-01-04 18:51:38,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a', 'name': 'ctest-vn-39395791', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'project_id': 'ab4f2259731548f29bfee9169d1f7690', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3834a092-dcc1-47d7-8008-dedb6bb16d69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-vn-39395791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-policy-allow-all-37055831']], 'subnet_ipam': [{'subnet_cidr': '54.214.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 18:51:38,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4766af4-d479-4631-9101-7c800d269077', 'name': 'ctest-vn-84826016', 'tenant_id': 'ab4f2259731548f29bfee9169d1f7690', 'project_id': 'ab4f2259731548f29bfee9169d1f7690', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab72cc40-6ed1-4620-9330-3c5efaf6991e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-vn-84826016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-policy-allow-all-37055831']], 'subnet_ipam': [{'subnet_cidr': '35.45.223.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 18:51:38,946 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-01-04 18:51:39,258 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-01-04 18:51:39,290 - DEBUG - Requesting: http://10.0.0.44:8082/domain/65aa57e1-6cf0-496b-8098-dcd790cd31a1
2025-01-04 18:51:39,304 - DEBUG - Requesting: http://10.0.0.44:8082/project/ab4f2259-7315-48f2-9bfe-e9169d1f7690
2025-01-04 18:51:39,391 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,405 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,418 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/ca13b9c4-a802-411c-a725-c2af1e33188e
2025-01-04 18:51:39,429 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/ca13b9c4-a802-411c-a725-c2af1e33188e
2025-01-04 18:51:39,436 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3b63e29b-8a5a-4822-a8f1-5e793137d565
2025-01-04 18:51:39,444 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 18:51:39,444 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,454 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/ca13b9c4-a802-411c-a725-c2af1e33188e
2025-01-04 18:51:39,468 - INFO - Verified VN network id 8 for VN f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,469 - INFO - Verifications in API Server for VN ctest-vn-39395791 passed
2025-01-04 18:51:39,469 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,481 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/ca13b9c4-a802-411c-a725-c2af1e33188e
2025-01-04 18:51:39,490 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/ca13b9c4-a802-411c-a725-c2af1e33188e
2025-01-04 18:51:39,498 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3b63e29b-8a5a-4822-a8f1-5e793137d565
2025-01-04 18:51:39,513 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75972257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17494077435432682475', 'uuid-lslong': '11668102921970894362'}, 'enable': 'true', 'created': '2025-01-04T18:51:37', 'last-modified': '2025-01-04T18:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041913'}
2025-01-04 18:51:39,520 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 18:51:39,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39395791 passed
2025-01-04 18:51:39,520 - DEBUG - ====Verifying policy data for ctest-vn-39395791 in API_Server ======
2025-01-04 18:51:39,520 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-01-04 18:51:39,526 - DEBUG - Requesting: http://10.0.0.44:8082/domain/65aa57e1-6cf0-496b-8098-dcd790cd31a1
2025-01-04 18:51:39,541 - DEBUG - Requesting: http://10.0.0.44:8082/project/ab4f2259-7315-48f2-9bfe-e9169d1f7690
2025-01-04 18:51:39,623 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f2c772bd-6c24-43eb-a1ed-6dc98ac5c61a
2025-01-04 18:51:39,634 - DEBUG - ==>Verifying data for policy with id: e918dbf5-6260-48ee-8883-ed976efd3842, fqn: ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-policy-allow-all-37055831']
2025-01-04 18:51:39,634 - INFO - VN ctest-vn-39395791 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 18:51:39,634 - DEBUG - Verifying the vn in opserver
2025-01-04 18:51:39,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791 virtual network link through opserver 10.0.0.44
2025-01-04 18:51:39,635 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-01-04 18:51:39,936 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-01-04 18:51:39,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791?flat'}
2025-01-04 18:51:39,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-39395791 is found in opserver
2025-01-04 18:51:40,005 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 18:51:40,010 - DEBUG - VRF ids for VN ctest-vn-39395791: {}
2025-01-04 18:51:40,010 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-01-04 18:51:40,016 - DEBUG - Requesting: http://10.0.0.44:8082/domain/65aa57e1-6cf0-496b-8098-dcd790cd31a1
2025-01-04 18:51:40,029 - DEBUG - Requesting: http://10.0.0.44:8082/project/ab4f2259-7315-48f2-9bfe-e9169d1f7690
2025-01-04 18:51:40,106 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,119 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,131 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5d0fe00a-7745-420c-bee7-ed153ffaad41
2025-01-04 18:51:40,138 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5d0fe00a-7745-420c-bee7-ed153ffaad41
2025-01-04 18:51:40,145 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f08f0adc-45e5-4b70-8afd-5aee28cef543
2025-01-04 18:51:40,151 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 18:51:40,151 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,161 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5d0fe00a-7745-420c-bee7-ed153ffaad41
2025-01-04 18:51:40,176 - INFO - Verified VN network id 9 for VN a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,176 - INFO - Verifications in API Server for VN ctest-vn-84826016 passed
2025-01-04 18:51:40,176 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,186 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5d0fe00a-7745-420c-bee7-ed153ffaad41
2025-01-04 18:51:40,193 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5d0fe00a-7745-420c-bee7-ed153ffaad41
2025-01-04 18:51:40,200 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f08f0adc-45e5-4b70-8afd-5aee28cef543
2025-01-04 18:51:40,212 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-84826016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75972257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11850777069241321009', 'uuid-lslong': '10448769499894550647'}, 'enable': 'true', 'created': '2025-01-04T18:51:37', 'last-modified': '2025-01-04T18:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492156'}
2025-01-04 18:51:40,220 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 18:51:40,220 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84826016 passed
2025-01-04 18:51:40,220 - DEBUG - ====Verifying policy data for ctest-vn-84826016 in API_Server ======
2025-01-04 18:51:40,220 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-01-04 18:51:40,226 - DEBUG - Requesting: http://10.0.0.44:8082/domain/65aa57e1-6cf0-496b-8098-dcd790cd31a1
2025-01-04 18:51:40,239 - DEBUG - Requesting: http://10.0.0.44:8082/project/ab4f2259-7315-48f2-9bfe-e9169d1f7690
2025-01-04 18:51:40,309 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a4766af4-d479-4631-9101-7c800d269077
2025-01-04 18:51:40,320 - DEBUG - ==>Verifying data for policy with id: e918dbf5-6260-48ee-8883-ed976efd3842, fqn: ['default-domain', 'ctest-TestBasicPolicy-75972257', 'ctest-policy-allow-all-37055831']
2025-01-04 18:51:40,320 - INFO - VN ctest-vn-84826016 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 18:51:40,320 - DEBUG - Verifying the vn in opserver
2025-01-04 18:51:40,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-84826016 virtual network link through opserver 10.0.0.44
2025-01-04 18:51:40,321 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-01-04 18:51:40,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-84826016', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-84826016?flat'}
2025-01-04 18:51:40,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75972257:ctest-vn-84826016 is found in opserver
2025-01-04 18:51:40,343 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 18:51:40,348 - DEBUG - VRF ids for VN ctest-vn-84826016: {}
2025-01-04 18:51:40,408 - DEBUG - Services list from nova: [