2025-06-05 02:09:35,126 - INFO - Domain Default found not creating
2025-06-05 02:09:35,298 - INFO - Project ctest-TestBasicPolicy-76162178 not found, creating it
2025-06-05 02:09:35,742 - INFO - Created Project:ctest-TestBasicPolicy-76162178, ID : 79b92cbd-71e0-4fc3-aa72-418bcdd9ec3b
2025-06-05 02:09:37,173 - INFO - ================================================================================
2025-06-05 02:09:37,174 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-05 02:09:37,174 - 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-06-05 02:09:37,431 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.129': '0'}} with
2025-06-05 02:09:37,431 - INFO - Initial checks done. Running the testcase now
2025-06-05 02:09:37,431 - INFO -
2025-06-05 02:09:37,971 - DEBUG - Response for create_network : {'network': {'id': '2d732a36-bdfb-4253-adb5-18eb0c931636', 'name': 'ctest-vn-82892761', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-vn-82892761'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:09:38,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '53fd4cb8-30a3-4b17-8f04-76c49f53f24c', 'name': '', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'network_id': '2d732a36-bdfb-4253-adb5-18eb0c931636', 'ip_version': 4, 'cidr': '194.138.176.64/26', 'allocation_pools': [{'start': '194.138.176.66', 'end': '194.138.176.126'}], 'gateway_ip': '194.138.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.138.176.66', 'tags': [], 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b'}}
2025-06-05 02:09:38,146 - INFO - Created VN ctest-vn-82892761
2025-06-05 02:09:38,196 - DEBUG - VN ctest-vn-82892761 UUID is 2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:38,520 - DEBUG - Response for create_network : {'network': {'id': '07a45a51-00f6-49ec-9226-48ea3508d592', 'name': 'ctest-vn-89895848', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-vn-89895848'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:09:38,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '81edf346-5efb-4315-aec0-df89f65c5f11', 'name': '', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'network_id': '07a45a51-00f6-49ec-9226-48ea3508d592', 'ip_version': 4, 'cidr': '26.159.190.128/26', 'allocation_pools': [{'start': '26.159.190.130', 'end': '26.159.190.190'}], 'gateway_ip': '26.159.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.159.190.130', 'tags': [], 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b'}}
2025-06-05 02:09:38,749 - INFO - Created VN ctest-vn-89895848
2025-06-05 02:09:38,800 - DEBUG - VN ctest-vn-89895848 UUID is 07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:38,918 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761, 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-76162178:ctest-vn-89895848, 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-06-05 02:09:39,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d732a36-bdfb-4253-adb5-18eb0c931636', 'name': 'ctest-vn-82892761', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53fd4cb8-30a3-4b17-8f04-76c49f53f24c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-vn-82892761'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-policy-allow-all-57127412']], 'subnet_ipam': [{'subnet_cidr': '194.138.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:09:39,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07a45a51-00f6-49ec-9226-48ea3508d592', 'name': 'ctest-vn-89895848', 'tenant_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'project_id': '79b92cbd71e04fc3aa72418bcdd9ec3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81edf346-5efb-4315-aec0-df89f65c5f11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-vn-89895848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-policy-allow-all-57127412']], 'subnet_ipam': [{'subnet_cidr': '26.159.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:09:39,616 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-05 02:09:39,916 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-05 02:09:39,949 - DEBUG - Requesting: http://10.0.0.254:8082/domain/583d9dc8-8703-4533-a877-163a6f3eb144
2025-06-05 02:09:39,964 - DEBUG - Requesting: http://10.0.0.254:8082/project/79b92cbd-71e0-4fc3-aa72-418bcdd9ec3b
2025-06-05 02:09:40,038 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,049 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,060 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71a6aeed-29d5-4318-9bf3-587b0d0a7571
2025-06-05 02:09:40,068 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71a6aeed-29d5-4318-9bf3-587b0d0a7571
2025-06-05 02:09:40,076 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/587529e4-4f8e-4378-ba3e-ee1c326e5163
2025-06-05 02:09:40,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:09:40,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,092 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71a6aeed-29d5-4318-9bf3-587b0d0a7571
2025-06-05 02:09:40,108 - INFO - Verified VN network id 8 for VN 2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,108 - INFO - Verifications in API Server for VN ctest-vn-82892761 passed
2025-06-05 02:09:40,108 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,118 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71a6aeed-29d5-4318-9bf3-587b0d0a7571
2025-06-05 02:09:40,127 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71a6aeed-29d5-4318-9bf3-587b0d0a7571
2025-06-05 02:09:40,134 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/587529e4-4f8e-4378-ba3e-ee1c326e5163
2025-06-05 02:09:40,146 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76162178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3275007768632443475', 'uuid-lslong': '12516938137153508918'}, 'enable': 'true', 'created': '2025-06-05T02:09:37', 'last-modified': '2025-06-05T02:09:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956616'}
2025-06-05 02:09:40,153 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:09:40,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82892761 passed
2025-06-05 02:09:40,153 - DEBUG - ====Verifying policy data for ctest-vn-82892761 in API_Server ======
2025-06-05 02:09:40,153 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-05 02:09:40,159 - DEBUG - Requesting: http://10.0.0.254:8082/domain/583d9dc8-8703-4533-a877-163a6f3eb144
2025-06-05 02:09:40,174 - DEBUG - Requesting: http://10.0.0.254:8082/project/79b92cbd-71e0-4fc3-aa72-418bcdd9ec3b
2025-06-05 02:09:40,242 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d732a36-bdfb-4253-adb5-18eb0c931636
2025-06-05 02:09:40,252 - DEBUG - ==>Verifying data for policy with id: 30be2d46-b261-4611-8175-4a232a931ba2, fqn: ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-policy-allow-all-57127412']
2025-06-05 02:09:40,252 - INFO - VN ctest-vn-82892761 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:09:40,252 - DEBUG - Verifying the vn in opserver
2025-06-05 02:09:40,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761 virtual network link through opserver 10.0.0.254
2025-06-05 02:09:40,252 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-05 02:09:40,549 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-05 02:09:40,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761?flat'}
2025-06-05 02:09:40,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-82892761 is found in opserver
2025-06-05 02:09:40,619 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:09:40,624 - DEBUG - VRF ids for VN ctest-vn-82892761: {}
2025-06-05 02:09:40,624 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-05 02:09:40,630 - DEBUG - Requesting: http://10.0.0.254:8082/domain/583d9dc8-8703-4533-a877-163a6f3eb144
2025-06-05 02:09:40,641 - DEBUG - Requesting: http://10.0.0.254:8082/project/79b92cbd-71e0-4fc3-aa72-418bcdd9ec3b
2025-06-05 02:09:40,711 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ade1cec3-dbe7-419d-aedb-0425d5079e88
2025-06-05 02:09:40,741 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ade1cec3-dbe7-419d-aedb-0425d5079e88
2025-06-05 02:09:40,749 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e0c85342-2879-452e-a890-2bdc645b4f30
2025-06-05 02:09:40,757 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:09:40,757 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,767 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ade1cec3-dbe7-419d-aedb-0425d5079e88
2025-06-05 02:09:40,783 - INFO - Verified VN network id 9 for VN 07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,784 - INFO - Verifications in API Server for VN ctest-vn-89895848 passed
2025-06-05 02:09:40,784 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,794 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ade1cec3-dbe7-419d-aedb-0425d5079e88
2025-06-05 02:09:40,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ade1cec3-dbe7-419d-aedb-0425d5079e88
2025-06-05 02:09:40,810 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e0c85342-2879-452e-a890-2bdc645b4f30
2025-06-05 02:09:40,822 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-89895848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76162178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '550664358401034732', 'uuid-lslong': '10531184949401802130'}, 'enable': 'true', 'created': '2025-06-05T02:09:38', 'last-modified': '2025-06-05T02:09:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388163'}
2025-06-05 02:09:40,828 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:09:40,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89895848 passed
2025-06-05 02:09:40,829 - DEBUG - ====Verifying policy data for ctest-vn-89895848 in API_Server ======
2025-06-05 02:09:40,829 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-05 02:09:40,835 - DEBUG - Requesting: http://10.0.0.254:8082/domain/583d9dc8-8703-4533-a877-163a6f3eb144
2025-06-05 02:09:40,849 - DEBUG - Requesting: http://10.0.0.254:8082/project/79b92cbd-71e0-4fc3-aa72-418bcdd9ec3b
2025-06-05 02:09:40,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a45a51-00f6-49ec-9226-48ea3508d592
2025-06-05 02:09:40,939 - DEBUG - ==>Verifying data for policy with id: 30be2d46-b261-4611-8175-4a232a931ba2, fqn: ['default-domain', 'ctest-TestBasicPolicy-76162178', 'ctest-policy-allow-all-57127412']
2025-06-05 02:09:40,939 - INFO - VN ctest-vn-89895848 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:09:40,939 - DEBUG - Verifying the vn in opserver
2025-06-05 02:09:40,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-89895848 virtual network link through opserver 10.0.0.254
2025-06-05 02:09:40,940 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-05 02:09:40,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-89895848', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-89895848?flat'}
2025-06-05 02:09:40,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76162178:ctest-vn-89895848 is found in opserver
2025-06-05 02:09:40,962 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:09:40,968 - DEBUG - VRF ids for VN ctest-vn-89895848: {}
2025-06-05 02:09:41,027 - DEBUG - Services list from nova: [