2025-06-26 11:46:52,767 - INFO - Domain Default found not creating
2025-06-26 11:46:52,927 - INFO - Project ctest-TestBasicPolicy-03493431 not found, creating it
2025-06-26 11:46:53,379 - INFO - Created Project:ctest-TestBasicPolicy-03493431, ID : ae67418d-23d3-43e1-93f4-46eb51262430
2025-06-26 11:46:54,834 - INFO - ================================================================================
2025-06-26 11:46:54,834 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 11:46:54,834 - 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-26 11:46:55,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-06-26 11:46:55,089 - INFO - Initial checks done. Running the testcase now
2025-06-26 11:46:55,089 - INFO -
2025-06-26 11:46:55,656 - DEBUG - Response for create_network : {'network': {'id': '869fcdbf-1545-4ff6-bb48-5df6f29f10b7', 'name': 'ctest-vn-75101279', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'project_id': 'ae67418d23d343e193f446eb51262430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-vn-75101279'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:46:55,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '0133e6d1-71b1-4028-88d9-6086fc5545ec', 'name': '', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'network_id': '869fcdbf-1545-4ff6-bb48-5df6f29f10b7', 'ip_version': 4, 'cidr': '97.138.143.64/26', 'allocation_pools': [{'start': '97.138.143.66', 'end': '97.138.143.126'}], 'gateway_ip': '97.138.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.138.143.66', 'tags': [], 'project_id': 'ae67418d23d343e193f446eb51262430'}}
2025-06-26 11:46:55,894 - INFO - Created VN ctest-vn-75101279
2025-06-26 11:46:55,947 - DEBUG - VN ctest-vn-75101279 UUID is 869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:56,253 - DEBUG - Response for create_network : {'network': {'id': '530415ff-1bd4-4786-8162-d36b1f1368be', 'name': 'ctest-vn-19716299', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'project_id': 'ae67418d23d343e193f446eb51262430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-vn-19716299'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:46:56,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '7631130e-8591-48fc-9ef8-5eadbbe39205', 'name': '', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'network_id': '530415ff-1bd4-4786-8162-d36b1f1368be', 'ip_version': 4, 'cidr': '99.56.119.192/26', 'allocation_pools': [{'start': '99.56.119.194', 'end': '99.56.119.254'}], 'gateway_ip': '99.56.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.56.119.194', 'tags': [], 'project_id': 'ae67418d23d343e193f446eb51262430'}}
2025-06-26 11:46:56,434 - INFO - Created VN ctest-vn-19716299
2025-06-26 11:46:56,487 - DEBUG - VN ctest-vn-19716299 UUID is 530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:56,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279, 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-03493431:ctest-vn-19716299, 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-26 11:46:56,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '869fcdbf-1545-4ff6-bb48-5df6f29f10b7', 'name': 'ctest-vn-75101279', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'project_id': 'ae67418d23d343e193f446eb51262430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0133e6d1-71b1-4028-88d9-6086fc5545ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-vn-75101279'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-policy-allow-all-89453956']], 'subnet_ipam': [{'subnet_cidr': '97.138.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:46:57,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '530415ff-1bd4-4786-8162-d36b1f1368be', 'name': 'ctest-vn-19716299', 'tenant_id': 'ae67418d23d343e193f446eb51262430', 'project_id': 'ae67418d23d343e193f446eb51262430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7631130e-8591-48fc-9ef8-5eadbbe39205'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-vn-19716299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-policy-allow-all-89453956']], 'subnet_ipam': [{'subnet_cidr': '99.56.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:46:57,359 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 11:46:57,654 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 11:46:57,681 - DEBUG - Requesting: http://10.0.0.48:8082/domain/840570f4-1a33-4641-83a9-a8e3370c44e8
2025-06-26 11:46:57,694 - DEBUG - Requesting: http://10.0.0.48:8082/project/ae67418d-23d3-43e1-93f4-46eb51262430
2025-06-26 11:46:57,765 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,777 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,788 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7e42b32-9aea-4388-8c51-d12e72798f96
2025-06-26 11:46:57,795 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7e42b32-9aea-4388-8c51-d12e72798f96
2025-06-26 11:46:57,802 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/76a81a35-395d-4ecc-b3ce-d87e1d52192b
2025-06-26 11:46:57,809 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 11:46:57,809 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,821 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7e42b32-9aea-4388-8c51-d12e72798f96
2025-06-26 11:46:57,838 - INFO - Verified VN network id 8 for VN 869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,838 - INFO - Verifications in API Server for VN ctest-vn-75101279 passed
2025-06-26 11:46:57,839 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,853 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7e42b32-9aea-4388-8c51-d12e72798f96
2025-06-26 11:46:57,861 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7e42b32-9aea-4388-8c51-d12e72798f96
2025-06-26 11:46:57,869 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/76a81a35-395d-4ecc-b3ce-d87e1d52192b
2025-06-26 11:46:57,883 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03493431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9700698342958649334', 'uuid-lslong': '13495139598629540023'}, 'enable': 'true', 'created': '2025-06-26T11:46:55', 'last-modified': '2025-06-26T11:46:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961019'}
2025-06-26 11:46:57,890 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 11:46:57,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75101279 passed
2025-06-26 11:46:57,890 - DEBUG - ====Verifying policy data for ctest-vn-75101279 in API_Server ======
2025-06-26 11:46:57,890 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 11:46:57,896 - DEBUG - Requesting: http://10.0.0.48:8082/domain/840570f4-1a33-4641-83a9-a8e3370c44e8
2025-06-26 11:46:57,909 - DEBUG - Requesting: http://10.0.0.48:8082/project/ae67418d-23d3-43e1-93f4-46eb51262430
2025-06-26 11:46:57,986 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/869fcdbf-1545-4ff6-bb48-5df6f29f10b7
2025-06-26 11:46:57,997 - DEBUG - ==>Verifying data for policy with id: 3708b55b-30b6-4c42-bce7-0c6553bd15f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-policy-allow-all-89453956']
2025-06-26 11:46:57,997 - INFO - VN ctest-vn-75101279 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 11:46:57,997 - DEBUG - Verifying the vn in opserver
2025-06-26 11:46:57,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279 virtual network link through opserver 10.0.0.48
2025-06-26 11:46:57,998 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 11:46:58,292 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 11:46:58,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279?flat'}
2025-06-26 11:46:58,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-75101279 is found in opserver
2025-06-26 11:46:58,356 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 11:46:58,361 - DEBUG - VRF ids for VN ctest-vn-75101279: {}
2025-06-26 11:46:58,361 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 11:46:58,368 - DEBUG - Requesting: http://10.0.0.48:8082/domain/840570f4-1a33-4641-83a9-a8e3370c44e8
2025-06-26 11:46:58,380 - DEBUG - Requesting: http://10.0.0.48:8082/project/ae67418d-23d3-43e1-93f4-46eb51262430
2025-06-26 11:46:58,456 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,469 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,479 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b78d9aeb-635d-41c1-ae62-acfaf308a545
2025-06-26 11:46:58,487 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b78d9aeb-635d-41c1-ae62-acfaf308a545
2025-06-26 11:46:58,494 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/993c44de-843f-494a-95e5-f5c3f303a959
2025-06-26 11:46:58,502 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 11:46:58,503 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,513 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b78d9aeb-635d-41c1-ae62-acfaf308a545
2025-06-26 11:46:58,530 - INFO - Verified VN network id 9 for VN 530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,530 - INFO - Verifications in API Server for VN ctest-vn-19716299 passed
2025-06-26 11:46:58,530 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,541 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b78d9aeb-635d-41c1-ae62-acfaf308a545
2025-06-26 11:46:58,548 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b78d9aeb-635d-41c1-ae62-acfaf308a545
2025-06-26 11:46:58,555 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/993c44de-843f-494a-95e5-f5c3f303a959
2025-06-26 11:46:58,566 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-19716299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03493431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5981930390482601862', 'uuid-lslong': '9323246635646675134'}, 'enable': 'true', 'created': '2025-06-26T11:46:56', 'last-modified': '2025-06-26T11:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412406'}
2025-06-26 11:46:58,572 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 11:46:58,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19716299 passed
2025-06-26 11:46:58,573 - DEBUG - ====Verifying policy data for ctest-vn-19716299 in API_Server ======
2025-06-26 11:46:58,573 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 11:46:58,578 - DEBUG - Requesting: http://10.0.0.48:8082/domain/840570f4-1a33-4641-83a9-a8e3370c44e8
2025-06-26 11:46:58,592 - DEBUG - Requesting: http://10.0.0.48:8082/project/ae67418d-23d3-43e1-93f4-46eb51262430
2025-06-26 11:46:58,665 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/530415ff-1bd4-4786-8162-d36b1f1368be
2025-06-26 11:46:58,676 - DEBUG - ==>Verifying data for policy with id: 3708b55b-30b6-4c42-bce7-0c6553bd15f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-03493431', 'ctest-policy-allow-all-89453956']
2025-06-26 11:46:58,676 - INFO - VN ctest-vn-19716299 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 11:46:58,676 - DEBUG - Verifying the vn in opserver
2025-06-26 11:46:58,676 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-19716299 virtual network link through opserver 10.0.0.48
2025-06-26 11:46:58,676 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 11:46:58,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-19716299', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-19716299?flat'}
2025-06-26 11:46:58,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03493431:ctest-vn-19716299 is found in opserver
2025-06-26 11:46:58,698 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 11:46:58,703 - DEBUG - VRF ids for VN ctest-vn-19716299: {}
2025-06-26 11:46:58,758 - DEBUG - Services list from nova: [