2025-05-01 02:08:56,633 - INFO - Domain Default found not creating
2025-05-01 02:08:56,784 - INFO - Project ctest-TestBasicPolicy-18160757 not found, creating it
2025-05-01 02:08:57,271 - INFO - Created Project:ctest-TestBasicPolicy-18160757, ID : aeef8681-28ad-4487-9dc2-b0c979d91493
2025-05-01 02:08:58,832 - INFO - ================================================================================
2025-05-01 02:08:58,832 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-01 02:08:58,833 - 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-01 02:08:59,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with
2025-05-01 02:08:59,088 - INFO - Initial checks done. Running the testcase now
2025-05-01 02:08:59,088 - INFO -
2025-05-01 02:08:59,683 - DEBUG - Response for create_network : {'network': {'id': '49dd1096-bcb4-450a-b33c-e36e44101c9a', 'name': 'ctest-vn-35107873', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'project_id': 'aeef868128ad44879dc2b0c979d91493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-vn-35107873'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:08:59,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '47a2607a-9287-47ed-ad5d-85f4bd3c0c72', 'name': '', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'network_id': '49dd1096-bcb4-450a-b33c-e36e44101c9a', 'ip_version': 4, 'cidr': '145.124.123.192/26', 'allocation_pools': [{'start': '145.124.123.194', 'end': '145.124.123.254'}], 'gateway_ip': '145.124.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.124.123.194', 'tags': [], 'project_id': 'aeef868128ad44879dc2b0c979d91493'}}
2025-05-01 02:08:59,923 - INFO - Created VN ctest-vn-35107873
2025-05-01 02:08:59,974 - DEBUG - VN ctest-vn-35107873 UUID is 49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:00,277 - DEBUG - Response for create_network : {'network': {'id': '33f60e65-6c5e-4625-8fdc-4eb8d9f61a94', 'name': 'ctest-vn-92788499', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'project_id': 'aeef868128ad44879dc2b0c979d91493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-vn-92788499'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:09:00,449 - DEBUG - Response for create_subnet : {'subnet': {'id': '4069a751-b2ad-4d05-ba10-1447f5d47c24', 'name': '', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'network_id': '33f60e65-6c5e-4625-8fdc-4eb8d9f61a94', 'ip_version': 4, 'cidr': '94.209.165.192/26', 'allocation_pools': [{'start': '94.209.165.194', 'end': '94.209.165.254'}], 'gateway_ip': '94.209.165.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.209.165.194', 'tags': [], 'project_id': 'aeef868128ad44879dc2b0c979d91493'}}
2025-05-01 02:09:00,466 - INFO - Created VN ctest-vn-92788499
2025-05-01 02:09:00,518 - DEBUG - VN ctest-vn-92788499 UUID is 33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:00,674 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873, 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-18160757:ctest-vn-92788499, 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-01 02:09:00,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49dd1096-bcb4-450a-b33c-e36e44101c9a', 'name': 'ctest-vn-35107873', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'project_id': 'aeef868128ad44879dc2b0c979d91493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47a2607a-9287-47ed-ad5d-85f4bd3c0c72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-vn-35107873'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-policy-allow-all-05790694']], 'subnet_ipam': [{'subnet_cidr': '145.124.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:09:01,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33f60e65-6c5e-4625-8fdc-4eb8d9f61a94', 'name': 'ctest-vn-92788499', 'tenant_id': 'aeef868128ad44879dc2b0c979d91493', 'project_id': 'aeef868128ad44879dc2b0c979d91493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4069a751-b2ad-4d05-ba10-1447f5d47c24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-vn-92788499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-policy-allow-all-05790694']], 'subnet_ipam': [{'subnet_cidr': '94.209.165.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:09:01,402 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-01 02:09:01,741 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-01 02:09:01,770 - DEBUG - Requesting: http://10.0.0.141:8082/domain/507f9caa-8a6d-4a9a-a03f-ef00d4376cc6
2025-05-01 02:09:01,785 - DEBUG - Requesting: http://10.0.0.141:8082/project/aeef8681-28ad-4487-9dc2-b0c979d91493
2025-05-01 02:09:01,858 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:01,870 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:01,883 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4bffa84b-e823-4fda-9885-a49963c6e273
2025-05-01 02:09:01,893 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4bffa84b-e823-4fda-9885-a49963c6e273
2025-05-01 02:09:01,904 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/99a14137-af2e-459e-aeb1-b25ebf77b34d
2025-05-01 02:09:01,912 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 02:09:01,912 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:01,923 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4bffa84b-e823-4fda-9885-a49963c6e273
2025-05-01 02:09:01,939 - INFO - Verified VN network id 8 for VN 49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:01,939 - INFO - Verifications in API Server for VN ctest-vn-35107873 passed
2025-05-01 02:09:01,939 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:01,951 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4bffa84b-e823-4fda-9885-a49963c6e273
2025-05-01 02:09:01,962 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4bffa84b-e823-4fda-9885-a49963c6e273
2025-05-01 02:09:01,972 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/99a14137-af2e-459e-aeb1-b25ebf77b34d
2025-05-01 02:09:01,989 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18160757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5322428574218863882', 'uuid-lslong': '12915447894119554202'}, 'enable': 'true', 'created': '2025-05-01T02:08:59', 'last-modified': '2025-05-01T02:09:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040565'}
2025-05-01 02:09:01,999 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 02:09:01,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35107873 passed
2025-05-01 02:09:02,000 - DEBUG - ====Verifying policy data for ctest-vn-35107873 in API_Server ======
2025-05-01 02:09:02,000 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-01 02:09:02,007 - DEBUG - Requesting: http://10.0.0.141:8082/domain/507f9caa-8a6d-4a9a-a03f-ef00d4376cc6
2025-05-01 02:09:02,022 - DEBUG - Requesting: http://10.0.0.141:8082/project/aeef8681-28ad-4487-9dc2-b0c979d91493
2025-05-01 02:09:02,101 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49dd1096-bcb4-450a-b33c-e36e44101c9a
2025-05-01 02:09:02,114 - DEBUG - ==>Verifying data for policy with id: 61482c11-7e36-4fa5-92a4-efb1ae25d650, fqn: ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-policy-allow-all-05790694']
2025-05-01 02:09:02,114 - INFO - VN ctest-vn-35107873 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 02:09:02,114 - DEBUG - Verifying the vn in opserver
2025-05-01 02:09:02,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873 virtual network link through opserver 10.0.0.141
2025-05-01 02:09:02,114 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-01 02:09:02,450 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-01 02:09:02,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873?flat'}
2025-05-01 02:09:02,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-35107873 is found in opserver
2025-05-01 02:09:02,529 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 02:09:02,535 - DEBUG - VRF ids for VN ctest-vn-35107873: {}
2025-05-01 02:09:02,535 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-01 02:09:02,541 - DEBUG - Requesting: http://10.0.0.141:8082/domain/507f9caa-8a6d-4a9a-a03f-ef00d4376cc6
2025-05-01 02:09:02,555 - DEBUG - Requesting: http://10.0.0.141:8082/project/aeef8681-28ad-4487-9dc2-b0c979d91493
2025-05-01 02:09:02,633 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,646 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,658 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e9c30224-567f-4b19-9f1d-cbcbad98049f
2025-05-01 02:09:02,668 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e9c30224-567f-4b19-9f1d-cbcbad98049f
2025-05-01 02:09:02,683 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fd45003b-42bd-45d8-b253-01066a98b45b
2025-05-01 02:09:02,690 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 02:09:02,690 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,701 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e9c30224-567f-4b19-9f1d-cbcbad98049f
2025-05-01 02:09:02,716 - INFO - Verified VN network id 9 for VN 33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,716 - INFO - Verifications in API Server for VN ctest-vn-92788499 passed
2025-05-01 02:09:02,716 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,727 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e9c30224-567f-4b19-9f1d-cbcbad98049f
2025-05-01 02:09:02,734 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e9c30224-567f-4b19-9f1d-cbcbad98049f
2025-05-01 02:09:02,742 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fd45003b-42bd-45d8-b253-01066a98b45b
2025-05-01 02:09:02,754 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-92788499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18160757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3744195968977749541', 'uuid-lslong': '10366246998137772692'}, 'enable': 'true', 'created': '2025-05-01T02:09:00', 'last-modified': '2025-05-01T02:09:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.570492'}
2025-05-01 02:09:02,761 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 02:09:02,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92788499 passed
2025-05-01 02:09:02,761 - DEBUG - ====Verifying policy data for ctest-vn-92788499 in API_Server ======
2025-05-01 02:09:02,762 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-01 02:09:02,768 - DEBUG - Requesting: http://10.0.0.141:8082/domain/507f9caa-8a6d-4a9a-a03f-ef00d4376cc6
2025-05-01 02:09:02,780 - DEBUG - Requesting: http://10.0.0.141:8082/project/aeef8681-28ad-4487-9dc2-b0c979d91493
2025-05-01 02:09:02,853 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/33f60e65-6c5e-4625-8fdc-4eb8d9f61a94
2025-05-01 02:09:02,864 - DEBUG - ==>Verifying data for policy with id: 61482c11-7e36-4fa5-92a4-efb1ae25d650, fqn: ['default-domain', 'ctest-TestBasicPolicy-18160757', 'ctest-policy-allow-all-05790694']
2025-05-01 02:09:02,864 - INFO - VN ctest-vn-92788499 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 02:09:02,864 - DEBUG - Verifying the vn in opserver
2025-05-01 02:09:02,864 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-92788499 virtual network link through opserver 10.0.0.141
2025-05-01 02:09:02,864 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-01 02:09:02,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-92788499', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-92788499?flat'}
2025-05-01 02:09:02,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18160757:ctest-vn-92788499 is found in opserver
2025-05-01 02:09:02,887 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 02:09:02,892 - DEBUG - VRF ids for VN ctest-vn-92788499: {}
2025-05-01 02:09:02,949 - DEBUG - Services list from nova: [