2025-04-28 15:36:03,356 - INFO - Domain Default found not creating
2025-04-28 15:36:03,480 - INFO - Project ctest-TestBasicPolicy-76904521 not found, creating it
2025-04-28 15:36:03,943 - INFO - Created Project:ctest-TestBasicPolicy-76904521, ID : a9d1ee95-cf83-4afa-af3c-94b036fe180c
2025-04-28 15:36:05,323 - INFO - ================================================================================
2025-04-28 15:36:05,324 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 15:36:05,324 - 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-28 15:36:05,580 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2025-04-28 15:36:05,581 - INFO - Initial checks done. Running the testcase now
2025-04-28 15:36:05,581 - INFO -
2025-04-28 15:36:06,106 - DEBUG - Response for create_network : {'network': {'id': '70297166-8326-4fa8-b05c-5800e3907e3b', 'name': 'ctest-vn-08961471', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-vn-08961471'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:36:06,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '34b2c860-6415-4465-99a2-32830a106891', 'name': '', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'network_id': '70297166-8326-4fa8-b05c-5800e3907e3b', 'ip_version': 4, 'cidr': '128.152.44.64/26', 'allocation_pools': [{'start': '128.152.44.66', 'end': '128.152.44.126'}], 'gateway_ip': '128.152.44.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.152.44.66', 'tags': [], 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c'}}
2025-04-28 15:36:06,302 - INFO - Created VN ctest-vn-08961471
2025-04-28 15:36:06,352 - DEBUG - VN ctest-vn-08961471 UUID is 70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:06,663 - DEBUG - Response for create_network : {'network': {'id': '326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435', 'name': 'ctest-vn-83114784', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-vn-83114784'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:36:06,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '85dd0c07-0222-4dd6-901d-e5b37221b913', 'name': '', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'network_id': '326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435', 'ip_version': 4, 'cidr': '152.185.34.192/26', 'allocation_pools': [{'start': '152.185.34.194', 'end': '152.185.34.254'}], 'gateway_ip': '152.185.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.185.34.194', 'tags': [], 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c'}}
2025-04-28 15:36:06,873 - INFO - Created VN ctest-vn-83114784
2025-04-28 15:36:06,928 - DEBUG - VN ctest-vn-83114784 UUID is 326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:07,084 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471, 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-76904521:ctest-vn-83114784, 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-28 15:36:07,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70297166-8326-4fa8-b05c-5800e3907e3b', 'name': 'ctest-vn-08961471', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34b2c860-6415-4465-99a2-32830a106891'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-vn-08961471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-policy-allow-all-88211960']], 'subnet_ipam': [{'subnet_cidr': '128.152.44.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:36:07,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435', 'name': 'ctest-vn-83114784', 'tenant_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'project_id': 'a9d1ee95cf834afaaf3c94b036fe180c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85dd0c07-0222-4dd6-901d-e5b37221b913'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-vn-83114784'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-policy-allow-all-88211960']], 'subnet_ipam': [{'subnet_cidr': '152.185.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:36:07,764 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-28 15:36:08,065 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-28 15:36:08,090 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f8a35b03-cecb-4bf3-84fa-69a6394b4e8a
2025-04-28 15:36:08,103 - DEBUG - Requesting: http://10.0.0.41:8082/project/a9d1ee95-cf83-4afa-af3c-94b036fe180c
2025-04-28 15:36:08,176 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,187 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,196 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/189de86e-a429-49ed-ae81-e4e6c6396a29
2025-04-28 15:36:08,203 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/189de86e-a429-49ed-ae81-e4e6c6396a29
2025-04-28 15:36:08,209 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/61923fb7-5f4c-4175-99f0-1a48a0931743
2025-04-28 15:36:08,215 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:36:08,215 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,223 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/189de86e-a429-49ed-ae81-e4e6c6396a29
2025-04-28 15:36:08,236 - INFO - Verified VN network id 7 for VN 70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,236 - INFO - Verifications in API Server for VN ctest-vn-08961471 passed
2025-04-28 15:36:08,236 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,244 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/189de86e-a429-49ed-ae81-e4e6c6396a29
2025-04-28 15:36:08,250 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/189de86e-a429-49ed-ae81-e4e6c6396a29
2025-04-28 15:36:08,257 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/61923fb7-5f4c-4175-99f0-1a48a0931743
2025-04-28 15:36:08,269 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76904521', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8082115691393994664', 'uuid-lslong': '12708129009373838907'}, 'enable': 'true', 'created': '2025-04-28T15:36:06', 'last-modified': '2025-04-28T15:36:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919836'}
2025-04-28 15:36:08,280 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:36:08,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08961471 passed
2025-04-28 15:36:08,280 - DEBUG - ====Verifying policy data for ctest-vn-08961471 in API_Server ======
2025-04-28 15:36:08,280 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-28 15:36:08,286 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f8a35b03-cecb-4bf3-84fa-69a6394b4e8a
2025-04-28 15:36:08,296 - DEBUG - Requesting: http://10.0.0.41:8082/project/a9d1ee95-cf83-4afa-af3c-94b036fe180c
2025-04-28 15:36:08,367 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70297166-8326-4fa8-b05c-5800e3907e3b
2025-04-28 15:36:08,377 - DEBUG - ==>Verifying data for policy with id: 7622821e-a42e-4d31-8c99-ad3304df7918, fqn: ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-policy-allow-all-88211960']
2025-04-28 15:36:08,377 - INFO - VN ctest-vn-08961471 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:36:08,378 - DEBUG - Verifying the vn in opserver
2025-04-28 15:36:08,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471 virtual network link through opserver 10.0.0.41
2025-04-28 15:36:08,378 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-28 15:36:08,664 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-28 15:36:08,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471?flat'}
2025-04-28 15:36:08,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-08961471 is found in opserver
2025-04-28 15:36:08,724 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:36:08,729 - DEBUG - VRF ids for VN ctest-vn-08961471: {}
2025-04-28 15:36:08,729 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-28 15:36:08,735 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f8a35b03-cecb-4bf3-84fa-69a6394b4e8a
2025-04-28 15:36:08,746 - DEBUG - Requesting: http://10.0.0.41:8082/project/a9d1ee95-cf83-4afa-af3c-94b036fe180c
2025-04-28 15:36:08,816 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:08,835 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:08,846 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3374eaeb-388f-42f8-8c4a-8d114b9110c7
2025-04-28 15:36:08,853 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3374eaeb-388f-42f8-8c4a-8d114b9110c7
2025-04-28 15:36:08,860 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6110288c-e412-4889-bbf7-715b0e9531f5
2025-04-28 15:36:08,867 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:36:08,867 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:08,876 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3374eaeb-388f-42f8-8c4a-8d114b9110c7
2025-04-28 15:36:08,889 - INFO - Verified VN network id 8 for VN 326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:08,889 - INFO - Verifications in API Server for VN ctest-vn-83114784 passed
2025-04-28 15:36:08,889 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:08,898 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3374eaeb-388f-42f8-8c4a-8d114b9110c7
2025-04-28 15:36:08,905 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3374eaeb-388f-42f8-8c4a-8d114b9110c7
2025-04-28 15:36:08,911 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6110288c-e412-4889-bbf7-715b0e9531f5
2025-04-28 15:36:08,923 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-83114784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76904521', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3633012417771294371', 'uuid-lslong': '12770472362384614453'}, 'enable': 'true', 'created': '2025-04-28T15:36:06', 'last-modified': '2025-04-28T15:36:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338530'}
2025-04-28 15:36:08,929 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:36:08,929 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83114784 passed
2025-04-28 15:36:08,929 - DEBUG - ====Verifying policy data for ctest-vn-83114784 in API_Server ======
2025-04-28 15:36:08,929 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-28 15:36:08,934 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f8a35b03-cecb-4bf3-84fa-69a6394b4e8a
2025-04-28 15:36:08,945 - DEBUG - Requesting: http://10.0.0.41:8082/project/a9d1ee95-cf83-4afa-af3c-94b036fe180c
2025-04-28 15:36:09,017 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/326b0d8b-a1d7-4ea3-b139-d4f3e5e0e435
2025-04-28 15:36:09,027 - DEBUG - ==>Verifying data for policy with id: 7622821e-a42e-4d31-8c99-ad3304df7918, fqn: ['default-domain', 'ctest-TestBasicPolicy-76904521', 'ctest-policy-allow-all-88211960']
2025-04-28 15:36:09,027 - INFO - VN ctest-vn-83114784 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:36:09,027 - DEBUG - Verifying the vn in opserver
2025-04-28 15:36:09,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-83114784 virtual network link through opserver 10.0.0.41
2025-04-28 15:36:09,027 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-28 15:36:09,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-83114784', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-83114784?flat'}
2025-04-28 15:36:09,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76904521:ctest-vn-83114784 is found in opserver
2025-04-28 15:36:09,047 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:36:09,051 - DEBUG - VRF ids for VN ctest-vn-83114784: {}
2025-04-28 15:36:09,102 - DEBUG - Services list from nova: [