2025-02-11 09:30:27,727 - INFO - Domain Default found not creating
2025-02-11 09:30:27,868 - INFO - Project ctest-TestBasicPolicy-20647698 not found, creating it
2025-02-11 09:30:28,338 - INFO - Created Project:ctest-TestBasicPolicy-20647698, ID : 98f96434-dbce-4858-9c8e-497bf2f0b8ae
2025-02-11 09:30:29,748 - INFO - ================================================================================
2025-02-11 09:30:29,748 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 09:30:29,748 - 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-02-11 09:30:30,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.7': '0'}} with
2025-02-11 09:30:30,005 - INFO - Initial checks done. Running the testcase now
2025-02-11 09:30:30,005 - INFO -
2025-02-11 09:30:30,554 - DEBUG - Response for create_network : {'network': {'id': '53b34632-bd39-412a-984c-c6ba0dc3e38c', 'name': 'ctest-vn-40344582', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'project_id': '98f96434dbce48589c8e497bf2f0b8ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-vn-40344582'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 09:30:30,784 - DEBUG - Response for create_subnet : {'subnet': {'id': '674e9a95-a03d-41eb-aa64-29b0c3b2b715', 'name': '', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'network_id': '53b34632-bd39-412a-984c-c6ba0dc3e38c', 'ip_version': 4, 'cidr': '193.74.199.192/26', 'allocation_pools': [{'start': '193.74.199.194', 'end': '193.74.199.254'}], 'gateway_ip': '193.74.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.74.199.194', 'tags': [], 'project_id': '98f96434dbce48589c8e497bf2f0b8ae'}}
2025-02-11 09:30:30,805 - INFO - Created VN ctest-vn-40344582
2025-02-11 09:30:30,858 - DEBUG - VN ctest-vn-40344582 UUID is 53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:31,186 - DEBUG - Response for create_network : {'network': {'id': 'd299b2bf-b896-46c7-8a47-80a70d31114a', 'name': 'ctest-vn-31298377', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'project_id': '98f96434dbce48589c8e497bf2f0b8ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-vn-31298377'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 09:30:31,408 - DEBUG - Response for create_subnet : {'subnet': {'id': '20b683cd-f751-44c3-80ce-2288f0e497a7', 'name': '', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'network_id': 'd299b2bf-b896-46c7-8a47-80a70d31114a', 'ip_version': 4, 'cidr': '216.230.34.64/26', 'allocation_pools': [{'start': '216.230.34.66', 'end': '216.230.34.126'}], 'gateway_ip': '216.230.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.230.34.66', 'tags': [], 'project_id': '98f96434dbce48589c8e497bf2f0b8ae'}}
2025-02-11 09:30:31,427 - INFO - Created VN ctest-vn-31298377
2025-02-11 09:30:31,478 - DEBUG - VN ctest-vn-31298377 UUID is d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:31,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582, 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-20647698:ctest-vn-31298377, 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-02-11 09:30:31,913 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53b34632-bd39-412a-984c-c6ba0dc3e38c', 'name': 'ctest-vn-40344582', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'project_id': '98f96434dbce48589c8e497bf2f0b8ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['674e9a95-a03d-41eb-aa64-29b0c3b2b715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-vn-40344582'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-policy-allow-all-72001271']], 'subnet_ipam': [{'subnet_cidr': '193.74.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 09:30:32,211 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd299b2bf-b896-46c7-8a47-80a70d31114a', 'name': 'ctest-vn-31298377', 'tenant_id': '98f96434dbce48589c8e497bf2f0b8ae', 'project_id': '98f96434dbce48589c8e497bf2f0b8ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20b683cd-f751-44c3-80ce-2288f0e497a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-vn-31298377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-policy-allow-all-72001271']], 'subnet_ipam': [{'subnet_cidr': '216.230.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 09:30:32,350 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-11 09:30:32,649 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-11 09:30:32,678 - DEBUG - Requesting: http://10.0.0.30:8082/domain/8cece4fa-a6c8-464c-b934-4fd346a41a04
2025-02-11 09:30:32,691 - DEBUG - Requesting: http://10.0.0.30:8082/project/98f96434-dbce-4858-9c8e-497bf2f0b8ae
2025-02-11 09:30:32,772 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,785 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,795 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/f15c76b9-af23-4f39-be38-f53e36ba55e3
2025-02-11 09:30:32,802 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/f15c76b9-af23-4f39-be38-f53e36ba55e3
2025-02-11 09:30:32,809 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/29cfae35-73c0-415f-b73a-0c5763b122a4
2025-02-11 09:30:32,815 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 09:30:32,815 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,824 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/f15c76b9-af23-4f39-be38-f53e36ba55e3
2025-02-11 09:30:32,838 - INFO - Verified VN network id 9 for VN 53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,838 - INFO - Verifications in API Server for VN ctest-vn-40344582 passed
2025-02-11 09:30:32,838 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,848 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/f15c76b9-af23-4f39-be38-f53e36ba55e3
2025-02-11 09:30:32,854 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/f15c76b9-af23-4f39-be38-f53e36ba55e3
2025-02-11 09:30:32,861 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/29cfae35-73c0-415f-b73a-0c5763b122a4
2025-02-11 09:30:32,872 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20647698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6031241509716181290', 'uuid-lslong': '10974364894392214412'}, 'enable': 'true', 'created': '2025-02-11T09:30:30', 'last-modified': '2025-02-11T09:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008319'}
2025-02-11 09:30:32,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 09:30:32,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40344582 passed
2025-02-11 09:30:32,879 - DEBUG - ====Verifying policy data for ctest-vn-40344582 in API_Server ======
2025-02-11 09:30:32,879 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-11 09:30:32,884 - DEBUG - Requesting: http://10.0.0.30:8082/domain/8cece4fa-a6c8-464c-b934-4fd346a41a04
2025-02-11 09:30:32,895 - DEBUG - Requesting: http://10.0.0.30:8082/project/98f96434-dbce-4858-9c8e-497bf2f0b8ae
2025-02-11 09:30:32,969 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/53b34632-bd39-412a-984c-c6ba0dc3e38c
2025-02-11 09:30:32,979 - DEBUG - ==>Verifying data for policy with id: 20139c6b-5577-44d7-a964-f50d0d892e33, fqn: ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-policy-allow-all-72001271']
2025-02-11 09:30:32,979 - INFO - VN ctest-vn-40344582 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 09:30:32,979 - DEBUG - Verifying the vn in opserver
2025-02-11 09:30:32,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582 virtual network link through opserver 10.0.0.30
2025-02-11 09:30:32,979 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-11 09:30:33,274 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-11 09:30:33,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582?flat'}
2025-02-11 09:30:33,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-40344582 is found in opserver
2025-02-11 09:30:33,341 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 09:30:33,347 - DEBUG - VRF ids for VN ctest-vn-40344582: {}
2025-02-11 09:30:33,347 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-11 09:30:33,353 - DEBUG - Requesting: http://10.0.0.30:8082/domain/8cece4fa-a6c8-464c-b934-4fd346a41a04
2025-02-11 09:30:33,366 - DEBUG - Requesting: http://10.0.0.30:8082/project/98f96434-dbce-4858-9c8e-497bf2f0b8ae
2025-02-11 09:30:33,437 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,450 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,460 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6006d682-1233-489e-bea3-d46d1eb06465
2025-02-11 09:30:33,468 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6006d682-1233-489e-bea3-d46d1eb06465
2025-02-11 09:30:33,475 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f174d611-1c86-4fd2-91e9-bd05b4e1f77d
2025-02-11 09:30:33,482 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 09:30:33,482 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,491 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6006d682-1233-489e-bea3-d46d1eb06465
2025-02-11 09:30:33,506 - INFO - Verified VN network id 10 for VN d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,506 - INFO - Verifications in API Server for VN ctest-vn-31298377 passed
2025-02-11 09:30:33,506 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,516 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6006d682-1233-489e-bea3-d46d1eb06465
2025-02-11 09:30:33,524 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6006d682-1233-489e-bea3-d46d1eb06465
2025-02-11 09:30:33,533 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f174d611-1c86-4fd2-91e9-bd05b4e1f77d
2025-02-11 09:30:33,547 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-31298377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20647698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15175356955906950855', 'uuid-lslong': '9964074155549725002'}, 'enable': 'true', 'created': '2025-02-11T09:30:31', 'last-modified': '2025-02-11T09:30:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408104'}
2025-02-11 09:30:33,554 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 09:30:33,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31298377 passed
2025-02-11 09:30:33,554 - DEBUG - ====Verifying policy data for ctest-vn-31298377 in API_Server ======
2025-02-11 09:30:33,554 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-11 09:30:33,560 - DEBUG - Requesting: http://10.0.0.30:8082/domain/8cece4fa-a6c8-464c-b934-4fd346a41a04
2025-02-11 09:30:33,572 - DEBUG - Requesting: http://10.0.0.30:8082/project/98f96434-dbce-4858-9c8e-497bf2f0b8ae
2025-02-11 09:30:33,647 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d299b2bf-b896-46c7-8a47-80a70d31114a
2025-02-11 09:30:33,656 - DEBUG - ==>Verifying data for policy with id: 20139c6b-5577-44d7-a964-f50d0d892e33, fqn: ['default-domain', 'ctest-TestBasicPolicy-20647698', 'ctest-policy-allow-all-72001271']
2025-02-11 09:30:33,657 - INFO - VN ctest-vn-31298377 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 09:30:33,657 - DEBUG - Verifying the vn in opserver
2025-02-11 09:30:33,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-31298377 virtual network link through opserver 10.0.0.30
2025-02-11 09:30:33,657 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-11 09:30:33,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-31298377', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-31298377?flat'}
2025-02-11 09:30:33,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20647698:ctest-vn-31298377 is found in opserver
2025-02-11 09:30:33,678 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 09:30:33,683 - DEBUG - VRF ids for VN ctest-vn-31298377: {}
2025-02-11 09:30:33,737 - DEBUG - Services list from nova: [