2025-04-23 15:13:02,584 - INFO - Domain Default found not creating
2025-04-23 15:13:02,736 - INFO - Project ctest-TestBasicPolicy-49934000 not found, creating it
2025-04-23 15:13:03,182 - INFO - Created Project:ctest-TestBasicPolicy-49934000, ID : 5f6bd44b-e93f-4fcb-9acc-39fa49340c46
2025-04-23 15:13:04,484 - INFO - ================================================================================
2025-04-23 15:13:04,484 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 15:13:04,484 - 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-04-23 15:13:04,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.18': '0'}} with
2025-04-23 15:13:04,742 - INFO - Initial checks done. Running the testcase now
2025-04-23 15:13:04,742 - INFO -
2025-04-23 15:13:05,255 - DEBUG - Response for create_network : {'network': {'id': 'fee74953-4d26-4d44-8bd4-f94b5eac0f1a', 'name': 'ctest-vn-63184690', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-vn-63184690'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:13:05,471 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea2cf80c-118a-4e5b-8f86-894da58f59df', 'name': '', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'network_id': 'fee74953-4d26-4d44-8bd4-f94b5eac0f1a', 'ip_version': 4, 'cidr': '171.158.53.192/26', 'allocation_pools': [{'start': '171.158.53.194', 'end': '171.158.53.254'}], 'gateway_ip': '171.158.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.158.53.194', 'tags': [], 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46'}}
2025-04-23 15:13:05,488 - INFO - Created VN ctest-vn-63184690
2025-04-23 15:13:05,539 - DEBUG - VN ctest-vn-63184690 UUID is fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:05,859 - DEBUG - Response for create_network : {'network': {'id': 'a75972b8-ba5c-45f6-a49b-257eaeb5ddb8', 'name': 'ctest-vn-99069465', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-vn-99069465'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:13:06,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e75a5ce-095a-490f-8124-dc79c698ef5d', 'name': '', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'network_id': 'a75972b8-ba5c-45f6-a49b-257eaeb5ddb8', 'ip_version': 4, 'cidr': '146.105.203.0/26', 'allocation_pools': [{'start': '146.105.203.2', 'end': '146.105.203.62'}], 'gateway_ip': '146.105.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.105.203.2', 'tags': [], 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46'}}
2025-04-23 15:13:06,049 - INFO - Created VN ctest-vn-99069465
2025-04-23 15:13:06,099 - DEBUG - VN ctest-vn-99069465 UUID is a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:06,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690, 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-49934000:ctest-vn-99069465, 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-04-23 15:13:06,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fee74953-4d26-4d44-8bd4-f94b5eac0f1a', 'name': 'ctest-vn-63184690', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea2cf80c-118a-4e5b-8f86-894da58f59df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-vn-63184690'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-policy-allow-all-93303093']], 'subnet_ipam': [{'subnet_cidr': '171.158.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:13:06,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a75972b8-ba5c-45f6-a49b-257eaeb5ddb8', 'name': 'ctest-vn-99069465', 'tenant_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'project_id': '5f6bd44be93f4fcb9acc39fa49340c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e75a5ce-095a-490f-8124-dc79c698ef5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-vn-99069465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-policy-allow-all-93303093']], 'subnet_ipam': [{'subnet_cidr': '146.105.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:13:06,947 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-04-23 15:13:07,217 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-04-23 15:13:07,246 - DEBUG - Requesting: http://10.0.0.133:8082/domain/e843aa18-ec85-48a2-bc50-46b8148b6016
2025-04-23 15:13:07,262 - DEBUG - Requesting: http://10.0.0.133:8082/project/5f6bd44b-e93f-4fcb-9acc-39fa49340c46
2025-04-23 15:13:07,341 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,357 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,369 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/49903e34-1c59-4312-b96e-9ee94ed2acbe
2025-04-23 15:13:07,378 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/49903e34-1c59-4312-b96e-9ee94ed2acbe
2025-04-23 15:13:07,387 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/d9f30f3f-8889-4f8e-9de8-8c5036ca44ed
2025-04-23 15:13:07,395 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 15:13:07,395 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,405 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/49903e34-1c59-4312-b96e-9ee94ed2acbe
2025-04-23 15:13:07,420 - INFO - Verified VN network id 8 for VN fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,420 - INFO - Verifications in API Server for VN ctest-vn-63184690 passed
2025-04-23 15:13:07,420 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,429 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/49903e34-1c59-4312-b96e-9ee94ed2acbe
2025-04-23 15:13:07,436 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/49903e34-1c59-4312-b96e-9ee94ed2acbe
2025-04-23 15:13:07,443 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/d9f30f3f-8889-4f8e-9de8-8c5036ca44ed
2025-04-23 15:13:07,454 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49934000', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18367730227379326276', 'uuid-lslong': '10075952368440839962'}, 'enable': 'true', 'created': '2025-04-23T15:13:05', 'last-modified': '2025-04-23T15:13:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927003'}
2025-04-23 15:13:07,460 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 15:13:07,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63184690 passed
2025-04-23 15:13:07,460 - DEBUG - ====Verifying policy data for ctest-vn-63184690 in API_Server ======
2025-04-23 15:13:07,461 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-04-23 15:13:07,466 - DEBUG - Requesting: http://10.0.0.133:8082/domain/e843aa18-ec85-48a2-bc50-46b8148b6016
2025-04-23 15:13:07,477 - DEBUG - Requesting: http://10.0.0.133:8082/project/5f6bd44b-e93f-4fcb-9acc-39fa49340c46
2025-04-23 15:13:07,550 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/fee74953-4d26-4d44-8bd4-f94b5eac0f1a
2025-04-23 15:13:07,562 - DEBUG - ==>Verifying data for policy with id: 5c503bd6-2c8e-4d9d-a749-402f00d3aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-policy-allow-all-93303093']
2025-04-23 15:13:07,562 - INFO - VN ctest-vn-63184690 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 15:13:07,562 - DEBUG - Verifying the vn in opserver
2025-04-23 15:13:07,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690 virtual network link through opserver 10.0.0.133
2025-04-23 15:13:07,563 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-04-23 15:13:07,821 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-04-23 15:13:07,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690?flat'}
2025-04-23 15:13:07,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-63184690 is found in opserver
2025-04-23 15:13:07,881 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 15:13:07,886 - DEBUG - VRF ids for VN ctest-vn-63184690: {}
2025-04-23 15:13:07,886 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-04-23 15:13:07,892 - DEBUG - Requesting: http://10.0.0.133:8082/domain/e843aa18-ec85-48a2-bc50-46b8148b6016
2025-04-23 15:13:07,903 - DEBUG - Requesting: http://10.0.0.133:8082/project/5f6bd44b-e93f-4fcb-9acc-39fa49340c46
2025-04-23 15:13:07,972 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:07,984 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:07,995 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/87680f21-e413-4e91-bf03-228eb4eb131b
2025-04-23 15:13:08,003 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/87680f21-e413-4e91-bf03-228eb4eb131b
2025-04-23 15:13:08,011 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/6ee7170b-172e-4098-909a-092c494c9f33
2025-04-23 15:13:08,017 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 15:13:08,017 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:08,028 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/87680f21-e413-4e91-bf03-228eb4eb131b
2025-04-23 15:13:08,041 - INFO - Verified VN network id 9 for VN a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:08,041 - INFO - Verifications in API Server for VN ctest-vn-99069465 passed
2025-04-23 15:13:08,041 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:08,052 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/87680f21-e413-4e91-bf03-228eb4eb131b
2025-04-23 15:13:08,059 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/87680f21-e413-4e91-bf03-228eb4eb131b
2025-04-23 15:13:08,065 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/6ee7170b-172e-4098-909a-092c494c9f33
2025-04-23 15:13:08,077 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-99069465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49934000', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12058795614987372022', 'uuid-lslong': '11861115269637594552'}, 'enable': 'true', 'created': '2025-04-23T15:13:05', 'last-modified': '2025-04-23T15:13:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320418'}
2025-04-23 15:13:08,083 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 15:13:08,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99069465 passed
2025-04-23 15:13:08,084 - DEBUG - ====Verifying policy data for ctest-vn-99069465 in API_Server ======
2025-04-23 15:13:08,084 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-04-23 15:13:08,089 - DEBUG - Requesting: http://10.0.0.133:8082/domain/e843aa18-ec85-48a2-bc50-46b8148b6016
2025-04-23 15:13:08,099 - DEBUG - Requesting: http://10.0.0.133:8082/project/5f6bd44b-e93f-4fcb-9acc-39fa49340c46
2025-04-23 15:13:08,179 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/a75972b8-ba5c-45f6-a49b-257eaeb5ddb8
2025-04-23 15:13:08,189 - DEBUG - ==>Verifying data for policy with id: 5c503bd6-2c8e-4d9d-a749-402f00d3aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-49934000', 'ctest-policy-allow-all-93303093']
2025-04-23 15:13:08,189 - INFO - VN ctest-vn-99069465 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 15:13:08,189 - DEBUG - Verifying the vn in opserver
2025-04-23 15:13:08,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-99069465 virtual network link through opserver 10.0.0.133
2025-04-23 15:13:08,189 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-04-23 15:13:08,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-99069465', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-99069465?flat'}
2025-04-23 15:13:08,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49934000:ctest-vn-99069465 is found in opserver
2025-04-23 15:13:08,213 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 15:13:08,219 - DEBUG - VRF ids for VN ctest-vn-99069465: {}
2025-04-23 15:13:08,283 - DEBUG - Services list from nova: [