2025-01-30 02:29:57,192 - INFO - Domain Default found not creating
2025-01-30 02:29:57,326 - INFO - Project ctest-TestBasicPolicy-74509982 not found, creating it
2025-01-30 02:29:57,784 - INFO - Created Project:ctest-TestBasicPolicy-74509982, ID : c553f681-154e-4c39-8fac-609a0c5262cc
2025-01-30 02:29:59,238 - INFO - ================================================================================
2025-01-30 02:29:59,238 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-30 02:29:59,238 - 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-30 02:29:59,499 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.0.0.28': '0'}} with
2025-01-30 02:29:59,499 - INFO - Initial checks done. Running the testcase now
2025-01-30 02:29:59,499 - INFO -
2025-01-30 02:30:00,051 - DEBUG - Response for create_network : {'network': {'id': '5c1417fb-a095-4798-b04b-b5db6933b6f1', 'name': 'ctest-vn-03423046', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'project_id': 'c553f681154e4c398fac609a0c5262cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-vn-03423046'], 'port_security_enabled': True, 'description': ''}}
2025-01-30 02:30:00,275 - DEBUG - Response for create_subnet : {'subnet': {'id': '24223fd2-6385-42ee-9223-9dc36eb034a1', 'name': '', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'network_id': '5c1417fb-a095-4798-b04b-b5db6933b6f1', 'ip_version': 4, 'cidr': '116.145.206.192/26', 'allocation_pools': [{'start': '116.145.206.194', 'end': '116.145.206.254'}], 'gateway_ip': '116.145.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.145.206.194', 'tags': [], 'project_id': 'c553f681154e4c398fac609a0c5262cc'}}
2025-01-30 02:30:00,293 - INFO - Created VN ctest-vn-03423046
2025-01-30 02:30:00,345 - DEBUG - VN ctest-vn-03423046 UUID is 5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:00,642 - DEBUG - Response for create_network : {'network': {'id': 'dcc1fe05-115a-402a-97f5-0b174cb4d731', 'name': 'ctest-vn-88307362', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'project_id': 'c553f681154e4c398fac609a0c5262cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-vn-88307362'], 'port_security_enabled': True, 'description': ''}}
2025-01-30 02:30:00,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dca8372-949b-4ecf-bbba-f5c36e4c54f6', 'name': '', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'network_id': 'dcc1fe05-115a-402a-97f5-0b174cb4d731', 'ip_version': 4, 'cidr': '139.208.193.192/26', 'allocation_pools': [{'start': '139.208.193.194', 'end': '139.208.193.254'}], 'gateway_ip': '139.208.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.208.193.194', 'tags': [], 'project_id': 'c553f681154e4c398fac609a0c5262cc'}}
2025-01-30 02:30:00,859 - INFO - Created VN ctest-vn-88307362
2025-01-30 02:30:00,913 - DEBUG - VN ctest-vn-88307362 UUID is dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:01,030 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046, 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-74509982:ctest-vn-88307362, 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-30 02:30:01,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c1417fb-a095-4798-b04b-b5db6933b6f1', 'name': 'ctest-vn-03423046', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'project_id': 'c553f681154e4c398fac609a0c5262cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24223fd2-6385-42ee-9223-9dc36eb034a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-vn-03423046'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-policy-allow-all-61583391']], 'subnet_ipam': [{'subnet_cidr': '116.145.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-30 02:30:01,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcc1fe05-115a-402a-97f5-0b174cb4d731', 'name': 'ctest-vn-88307362', 'tenant_id': 'c553f681154e4c398fac609a0c5262cc', 'project_id': 'c553f681154e4c398fac609a0c5262cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dca8372-949b-4ecf-bbba-f5c36e4c54f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-vn-88307362'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-policy-allow-all-61583391']], 'subnet_ipam': [{'subnet_cidr': '139.208.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-30 02:30:01,757 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-30 02:30:02,062 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-30 02:30:02,094 - DEBUG - Requesting: http://10.0.0.28:8082/domain/312d7d96-6036-429e-b776-bbf9b792f41d
2025-01-30 02:30:02,107 - DEBUG - Requesting: http://10.0.0.28:8082/project/c553f681-154e-4c39-8fac-609a0c5262cc
2025-01-30 02:30:02,186 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,200 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,210 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87a046b7-2d96-4fb2-aadf-32c54d7ff14c
2025-01-30 02:30:02,219 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87a046b7-2d96-4fb2-aadf-32c54d7ff14c
2025-01-30 02:30:02,227 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/032015f8-1787-47c6-bb3c-5e87ca903178
2025-01-30 02:30:02,237 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-30 02:30:02,237 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,247 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87a046b7-2d96-4fb2-aadf-32c54d7ff14c
2025-01-30 02:30:02,262 - INFO - Verified VN network id 8 for VN 5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,262 - INFO - Verifications in API Server for VN ctest-vn-03423046 passed
2025-01-30 02:30:02,262 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,272 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87a046b7-2d96-4fb2-aadf-32c54d7ff14c
2025-01-30 02:30:02,279 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87a046b7-2d96-4fb2-aadf-32c54d7ff14c
2025-01-30 02:30:02,287 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/032015f8-1787-47c6-bb3c-5e87ca903178
2025-01-30 02:30:02,300 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74509982', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6634954520521951128', 'uuid-lslong': '12703447127896078065'}, 'enable': 'true', 'created': '2025-01-30T02:30:00', 'last-modified': '2025-01-30T02:30:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981961'}
2025-01-30 02:30:02,307 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-30 02:30:02,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03423046 passed
2025-01-30 02:30:02,307 - DEBUG - ====Verifying policy data for ctest-vn-03423046 in API_Server ======
2025-01-30 02:30:02,307 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-30 02:30:02,314 - DEBUG - Requesting: http://10.0.0.28:8082/domain/312d7d96-6036-429e-b776-bbf9b792f41d
2025-01-30 02:30:02,327 - DEBUG - Requesting: http://10.0.0.28:8082/project/c553f681-154e-4c39-8fac-609a0c5262cc
2025-01-30 02:30:02,411 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5c1417fb-a095-4798-b04b-b5db6933b6f1
2025-01-30 02:30:02,420 - DEBUG - ==>Verifying data for policy with id: cfcccc30-6f64-4ae8-b5de-82c6737391be, fqn: ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-policy-allow-all-61583391']
2025-01-30 02:30:02,420 - INFO - VN ctest-vn-03423046 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-30 02:30:02,420 - DEBUG - Verifying the vn in opserver
2025-01-30 02:30:02,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046 virtual network link through opserver 10.0.0.28
2025-01-30 02:30:02,421 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-30 02:30:02,719 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-30 02:30:02,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046?flat'}
2025-01-30 02:30:02,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-03423046 is found in opserver
2025-01-30 02:30:02,800 - DEBUG - Do not have enough data to verify VN in agent
2025-01-30 02:30:02,806 - DEBUG - VRF ids for VN ctest-vn-03423046: {}
2025-01-30 02:30:02,806 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-30 02:30:02,813 - DEBUG - Requesting: http://10.0.0.28:8082/domain/312d7d96-6036-429e-b776-bbf9b792f41d
2025-01-30 02:30:02,830 - DEBUG - Requesting: http://10.0.0.28:8082/project/c553f681-154e-4c39-8fac-609a0c5262cc
2025-01-30 02:30:02,904 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:02,916 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:02,926 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/12e41b4c-f864-4861-879a-a1976d008826
2025-01-30 02:30:02,933 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/12e41b4c-f864-4861-879a-a1976d008826
2025-01-30 02:30:02,942 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/70221a44-ffc4-415d-a16d-e556976c7f46
2025-01-30 02:30:02,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-30 02:30:02,949 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:02,960 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/12e41b4c-f864-4861-879a-a1976d008826
2025-01-30 02:30:02,973 - INFO - Verified VN network id 9 for VN dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:02,973 - INFO - Verifications in API Server for VN ctest-vn-88307362 passed
2025-01-30 02:30:02,973 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:02,984 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/12e41b4c-f864-4861-879a-a1976d008826
2025-01-30 02:30:02,991 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/12e41b4c-f864-4861-879a-a1976d008826
2025-01-30 02:30:02,998 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/70221a44-ffc4-415d-a16d-e556976c7f46
2025-01-30 02:30:03,011 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-88307362', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74509982', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15907274656568721450', 'uuid-lslong': '10949670263720302385'}, 'enable': 'true', 'created': '2025-01-30T02:30:00', 'last-modified': '2025-01-30T02:30:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443103'}
2025-01-30 02:30:03,018 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-30 02:30:03,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88307362 passed
2025-01-30 02:30:03,018 - DEBUG - ====Verifying policy data for ctest-vn-88307362 in API_Server ======
2025-01-30 02:30:03,018 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-30 02:30:03,024 - DEBUG - Requesting: http://10.0.0.28:8082/domain/312d7d96-6036-429e-b776-bbf9b792f41d
2025-01-30 02:30:03,039 - DEBUG - Requesting: http://10.0.0.28:8082/project/c553f681-154e-4c39-8fac-609a0c5262cc
2025-01-30 02:30:03,112 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/dcc1fe05-115a-402a-97f5-0b174cb4d731
2025-01-30 02:30:03,122 - DEBUG - ==>Verifying data for policy with id: cfcccc30-6f64-4ae8-b5de-82c6737391be, fqn: ['default-domain', 'ctest-TestBasicPolicy-74509982', 'ctest-policy-allow-all-61583391']
2025-01-30 02:30:03,122 - INFO - VN ctest-vn-88307362 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-30 02:30:03,122 - DEBUG - Verifying the vn in opserver
2025-01-30 02:30:03,122 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-88307362 virtual network link through opserver 10.0.0.28
2025-01-30 02:30:03,122 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-30 02:30:03,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-88307362', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-88307362?flat'}
2025-01-30 02:30:03,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74509982:ctest-vn-88307362 is found in opserver
2025-01-30 02:30:03,143 - DEBUG - Do not have enough data to verify VN in agent
2025-01-30 02:30:03,149 - DEBUG - VRF ids for VN ctest-vn-88307362: {}
2025-01-30 02:30:03,206 - DEBUG - Services list from nova: [