2025-05-08 11:07:39,564 - INFO - Domain Default found not creating
2025-05-08 11:07:39,702 - INFO - Project ctest-TestBasicPolicy-89797401 not found, creating it
2025-05-08 11:07:40,157 - INFO - Created Project:ctest-TestBasicPolicy-89797401, ID : 8c397715-25e4-4524-943b-cb7e0a02f62a
2025-05-08 11:07:41,544 - INFO - ================================================================================
2025-05-08 11:07:41,544 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 11:07:41,544 - 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-05-08 11:07:41,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-08 11:07:41,803 - INFO - Initial checks done. Running the testcase now
2025-05-08 11:07:41,803 - INFO -
2025-05-08 11:07:42,326 - DEBUG - Response for create_network : {'network': {'id': '8b136e78-132e-440f-9422-df409f4ab697', 'name': 'ctest-vn-97561317', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'project_id': '8c39771525e44524943bcb7e0a02f62a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-vn-97561317'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 11:07:42,488 - DEBUG - Response for create_subnet : {'subnet': {'id': '87aa6fe2-c8df-43ae-af63-a632a6e2f1a1', 'name': '', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'network_id': '8b136e78-132e-440f-9422-df409f4ab697', 'ip_version': 4, 'cidr': '182.84.4.0/26', 'allocation_pools': [{'start': '182.84.4.2', 'end': '182.84.4.62'}], 'gateway_ip': '182.84.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.84.4.2', 'tags': [], 'project_id': '8c39771525e44524943bcb7e0a02f62a'}}
2025-05-08 11:07:42,503 - INFO - Created VN ctest-vn-97561317
2025-05-08 11:07:42,553 - DEBUG - VN ctest-vn-97561317 UUID is 8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:42,876 - DEBUG - Response for create_network : {'network': {'id': '14030768-e9d7-4917-8fae-25f81421679f', 'name': 'ctest-vn-04238486', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'project_id': '8c39771525e44524943bcb7e0a02f62a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-vn-04238486'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 11:07:43,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f845f30-ce36-498e-b867-15262fcd96f1', 'name': '', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'network_id': '14030768-e9d7-4917-8fae-25f81421679f', 'ip_version': 4, 'cidr': '100.234.231.192/26', 'allocation_pools': [{'start': '100.234.231.194', 'end': '100.234.231.254'}], 'gateway_ip': '100.234.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.234.231.194', 'tags': [], 'project_id': '8c39771525e44524943bcb7e0a02f62a'}}
2025-05-08 11:07:43,065 - INFO - Created VN ctest-vn-04238486
2025-05-08 11:07:43,117 - DEBUG - VN ctest-vn-04238486 UUID is 14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:43,261 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317, 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-89797401:ctest-vn-04238486, 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-05-08 11:07:43,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b136e78-132e-440f-9422-df409f4ab697', 'name': 'ctest-vn-97561317', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'project_id': '8c39771525e44524943bcb7e0a02f62a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87aa6fe2-c8df-43ae-af63-a632a6e2f1a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-vn-97561317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-policy-allow-all-15920685']], 'subnet_ipam': [{'subnet_cidr': '182.84.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 11:07:43,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14030768-e9d7-4917-8fae-25f81421679f', 'name': 'ctest-vn-04238486', 'tenant_id': '8c39771525e44524943bcb7e0a02f62a', 'project_id': '8c39771525e44524943bcb7e0a02f62a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f845f30-ce36-498e-b867-15262fcd96f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-vn-04238486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-policy-allow-all-15920685']], 'subnet_ipam': [{'subnet_cidr': '100.234.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 11:07:43,941 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 11:07:44,250 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 11:07:44,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf6ec89-f68e-41d7-a86d-a940b0370322
2025-05-08 11:07:44,289 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c397715-25e4-4524-943b-cb7e0a02f62a
2025-05-08 11:07:44,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/496c2f59-220e-4789-b23a-a38ab869dc35
2025-05-08 11:07:44,386 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/496c2f59-220e-4789-b23a-a38ab869dc35
2025-05-08 11:07:44,393 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bbed0f65-7406-4a43-92c4-d3e3260130a5
2025-05-08 11:07:44,398 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 11:07:44,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/496c2f59-220e-4789-b23a-a38ab869dc35
2025-05-08 11:07:44,420 - INFO - Verified VN network id 8 for VN 8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,420 - INFO - Verifications in API Server for VN ctest-vn-97561317 passed
2025-05-08 11:07:44,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,429 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/496c2f59-220e-4789-b23a-a38ab869dc35
2025-05-08 11:07:44,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/496c2f59-220e-4789-b23a-a38ab869dc35
2025-05-08 11:07:44,441 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bbed0f65-7406-4a43-92c4-d3e3260130a5
2025-05-08 11:07:44,452 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89797401', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10021475057826415631', 'uuid-lslong': '10674339535464871575'}, 'enable': 'true', 'created': '2025-05-08T11:07:42', 'last-modified': '2025-05-08T11:07:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914002'}
2025-05-08 11:07:44,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 11:07:44,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97561317 passed
2025-05-08 11:07:44,459 - DEBUG - ====Verifying policy data for ctest-vn-97561317 in API_Server ======
2025-05-08 11:07:44,459 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 11:07:44,464 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf6ec89-f68e-41d7-a86d-a940b0370322
2025-05-08 11:07:44,475 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c397715-25e4-4524-943b-cb7e0a02f62a
2025-05-08 11:07:44,548 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b136e78-132e-440f-9422-df409f4ab697
2025-05-08 11:07:44,560 - DEBUG - ==>Verifying data for policy with id: b2e05ab8-13fb-41f9-bd8e-2ad8d6343c8c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-policy-allow-all-15920685']
2025-05-08 11:07:44,561 - INFO - VN ctest-vn-97561317 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 11:07:44,561 - DEBUG - Verifying the vn in opserver
2025-05-08 11:07:44,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317 virtual network link through opserver 10.0.0.38
2025-05-08 11:07:44,561 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 11:07:44,851 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 11:07:44,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317?flat'}
2025-05-08 11:07:44,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-97561317 is found in opserver
2025-05-08 11:07:44,912 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 11:07:44,916 - DEBUG - VRF ids for VN ctest-vn-97561317: {}
2025-05-08 11:07:44,917 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 11:07:44,922 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf6ec89-f68e-41d7-a86d-a940b0370322
2025-05-08 11:07:44,933 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c397715-25e4-4524-943b-cb7e0a02f62a
2025-05-08 11:07:45,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e10db66b-a6ad-447b-84bf-24274f692939
2025-05-08 11:07:45,029 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e10db66b-a6ad-447b-84bf-24274f692939
2025-05-08 11:07:45,036 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/74bbb7e4-d9c9-443b-9261-9561c4cc9b11
2025-05-08 11:07:45,042 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 11:07:45,042 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,051 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e10db66b-a6ad-447b-84bf-24274f692939
2025-05-08 11:07:45,063 - INFO - Verified VN network id 9 for VN 14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,063 - INFO - Verifications in API Server for VN ctest-vn-04238486 passed
2025-05-08 11:07:45,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e10db66b-a6ad-447b-84bf-24274f692939
2025-05-08 11:07:45,077 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e10db66b-a6ad-447b-84bf-24274f692939
2025-05-08 11:07:45,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/74bbb7e4-d9c9-443b-9261-9561c4cc9b11
2025-05-08 11:07:45,094 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-04238486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89797401', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1442004452869884183', 'uuid-lslong': '10353254340791199647'}, 'enable': 'true', 'created': '2025-05-08T11:07:42', 'last-modified': '2025-05-08T11:07:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.319683'}
2025-05-08 11:07:45,100 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 11:07:45,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04238486 passed
2025-05-08 11:07:45,100 - DEBUG - ====Verifying policy data for ctest-vn-04238486 in API_Server ======
2025-05-08 11:07:45,100 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 11:07:45,105 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf6ec89-f68e-41d7-a86d-a940b0370322
2025-05-08 11:07:45,115 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c397715-25e4-4524-943b-cb7e0a02f62a
2025-05-08 11:07:45,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/14030768-e9d7-4917-8fae-25f81421679f
2025-05-08 11:07:45,196 - DEBUG - ==>Verifying data for policy with id: b2e05ab8-13fb-41f9-bd8e-2ad8d6343c8c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89797401', 'ctest-policy-allow-all-15920685']
2025-05-08 11:07:45,196 - INFO - VN ctest-vn-04238486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 11:07:45,196 - DEBUG - Verifying the vn in opserver
2025-05-08 11:07:45,196 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-04238486 virtual network link through opserver 10.0.0.38
2025-05-08 11:07:45,196 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 11:07:45,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-04238486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-04238486?flat'}
2025-05-08 11:07:45,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89797401:ctest-vn-04238486 is found in opserver
2025-05-08 11:07:45,216 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 11:07:45,221 - DEBUG - VRF ids for VN ctest-vn-04238486: {}
2025-05-08 11:07:45,272 - DEBUG - Services list from nova: [