2025-04-14 18:56:04,841 - INFO - Domain Default found not creating
2025-04-14 18:56:05,022 - INFO - Project ctest-TestBasicPolicy-77510113 not found, creating it
2025-04-14 18:56:05,528 - INFO - Created Project:ctest-TestBasicPolicy-77510113, ID : 145b31fd-5fe6-4da6-93be-9ffd78baa033
2025-04-14 18:56:07,123 - INFO - ================================================================================
2025-04-14 18:56:07,123 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 18:56:07,123 - 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-14 18:56:07,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-14 18:56:07,384 - INFO - Initial checks done. Running the testcase now
2025-04-14 18:56:07,384 - INFO -
2025-04-14 18:56:08,037 - DEBUG - Response for create_network : {'network': {'id': '445daa2c-5af6-4543-9c11-1706281f6f74', 'name': 'ctest-vn-65456290', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'project_id': '145b31fd5fe64da693be9ffd78baa033', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-vn-65456290'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 18:56:08,272 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cf1bc50-7c0f-4f47-a6a6-09e0fb48c7b3', 'name': '', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'network_id': '445daa2c-5af6-4543-9c11-1706281f6f74', 'ip_version': 4, 'cidr': '76.34.78.128/26', 'allocation_pools': [{'start': '76.34.78.130', 'end': '76.34.78.190'}], 'gateway_ip': '76.34.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.34.78.130', 'tags': [], 'project_id': '145b31fd5fe64da693be9ffd78baa033'}}
2025-04-14 18:56:08,293 - INFO - Created VN ctest-vn-65456290
2025-04-14 18:56:08,348 - DEBUG - VN ctest-vn-65456290 UUID is 445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:08,685 - DEBUG - Response for create_network : {'network': {'id': '249cb6c0-c0a1-405b-992b-d4291b096b18', 'name': 'ctest-vn-88331772', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'project_id': '145b31fd5fe64da693be9ffd78baa033', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-vn-88331772'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 18:56:08,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a128824b-ecda-4cc4-a069-a5fed3454e8f', 'name': '', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'network_id': '249cb6c0-c0a1-405b-992b-d4291b096b18', 'ip_version': 4, 'cidr': '60.87.177.64/26', 'allocation_pools': [{'start': '60.87.177.66', 'end': '60.87.177.126'}], 'gateway_ip': '60.87.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.87.177.66', 'tags': [], 'project_id': '145b31fd5fe64da693be9ffd78baa033'}}
2025-04-14 18:56:08,936 - INFO - Created VN ctest-vn-88331772
2025-04-14 18:56:08,991 - DEBUG - VN ctest-vn-88331772 UUID is 249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:09,124 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290, 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-77510113:ctest-vn-88331772, 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-14 18:56:09,469 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '445daa2c-5af6-4543-9c11-1706281f6f74', 'name': 'ctest-vn-65456290', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'project_id': '145b31fd5fe64da693be9ffd78baa033', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cf1bc50-7c0f-4f47-a6a6-09e0fb48c7b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-vn-65456290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-policy-allow-all-64497121']], 'subnet_ipam': [{'subnet_cidr': '76.34.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 18:56:09,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '249cb6c0-c0a1-405b-992b-d4291b096b18', 'name': 'ctest-vn-88331772', 'tenant_id': '145b31fd5fe64da693be9ffd78baa033', 'project_id': '145b31fd5fe64da693be9ffd78baa033', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a128824b-ecda-4cc4-a069-a5fed3454e8f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-vn-88331772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-policy-allow-all-64497121']], 'subnet_ipam': [{'subnet_cidr': '60.87.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 18:56:09,955 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 18:56:10,281 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 18:56:10,315 - DEBUG - Requesting: http://10.0.0.50:8082/domain/db564364-1b1c-41fd-9790-47fbd54991fd
2025-04-14 18:56:10,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/145b31fd-5fe6-4da6-93be-9ffd78baa033
2025-04-14 18:56:10,415 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,427 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,438 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0db97e45-08cb-4600-ba98-268d6e1a3e5c
2025-04-14 18:56:10,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0db97e45-08cb-4600-ba98-268d6e1a3e5c
2025-04-14 18:56:10,457 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb2432d1-7881-43f1-9b0c-3b502a857fe5
2025-04-14 18:56:10,466 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 18:56:10,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,478 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0db97e45-08cb-4600-ba98-268d6e1a3e5c
2025-04-14 18:56:10,497 - INFO - Verified VN network id 8 for VN 445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,497 - INFO - Verifications in API Server for VN ctest-vn-65456290 passed
2025-04-14 18:56:10,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0db97e45-08cb-4600-ba98-268d6e1a3e5c
2025-04-14 18:56:10,520 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0db97e45-08cb-4600-ba98-268d6e1a3e5c
2025-04-14 18:56:10,530 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb2432d1-7881-43f1-9b0c-3b502a857fe5
2025-04-14 18:56:10,544 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77510113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4926280674894562627', 'uuid-lslong': '11245795059731230580'}, 'enable': 'true', 'created': '2025-04-14T18:56:07', 'last-modified': '2025-04-14T18:56:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110848'}
2025-04-14 18:56:10,552 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 18:56:10,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65456290 passed
2025-04-14 18:56:10,552 - DEBUG - ====Verifying policy data for ctest-vn-65456290 in API_Server ======
2025-04-14 18:56:10,552 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 18:56:10,559 - DEBUG - Requesting: http://10.0.0.50:8082/domain/db564364-1b1c-41fd-9790-47fbd54991fd
2025-04-14 18:56:10,573 - DEBUG - Requesting: http://10.0.0.50:8082/project/145b31fd-5fe6-4da6-93be-9ffd78baa033
2025-04-14 18:56:10,653 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/445daa2c-5af6-4543-9c11-1706281f6f74
2025-04-14 18:56:10,664 - DEBUG - ==>Verifying data for policy with id: d27b5a04-c9dc-46ed-b041-9392b322e0fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-policy-allow-all-64497121']
2025-04-14 18:56:10,664 - INFO - VN ctest-vn-65456290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 18:56:10,664 - DEBUG - Verifying the vn in opserver
2025-04-14 18:56:10,664 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290 virtual network link through opserver 10.0.0.50
2025-04-14 18:56:10,664 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 18:56:10,972 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 18:56:11,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290?flat'}
2025-04-14 18:56:11,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-65456290 is found in opserver
2025-04-14 18:56:11,056 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 18:56:11,064 - DEBUG - VRF ids for VN ctest-vn-65456290: {}
2025-04-14 18:56:11,064 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 18:56:11,072 - DEBUG - Requesting: http://10.0.0.50:8082/domain/db564364-1b1c-41fd-9790-47fbd54991fd
2025-04-14 18:56:11,088 - DEBUG - Requesting: http://10.0.0.50:8082/project/145b31fd-5fe6-4da6-93be-9ffd78baa033
2025-04-14 18:56:11,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,202 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,213 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f701371-bc5c-4b5f-b50c-3b0eb9ea4404
2025-04-14 18:56:11,223 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f701371-bc5c-4b5f-b50c-3b0eb9ea4404
2025-04-14 18:56:11,232 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66100b03-a8d0-4b8d-81e0-0a22e46f7a6f
2025-04-14 18:56:11,240 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 18:56:11,240 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,251 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f701371-bc5c-4b5f-b50c-3b0eb9ea4404
2025-04-14 18:56:11,270 - INFO - Verified VN network id 9 for VN 249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,270 - INFO - Verifications in API Server for VN ctest-vn-88331772 passed
2025-04-14 18:56:11,270 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,282 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f701371-bc5c-4b5f-b50c-3b0eb9ea4404
2025-04-14 18:56:11,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f701371-bc5c-4b5f-b50c-3b0eb9ea4404
2025-04-14 18:56:11,303 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66100b03-a8d0-4b8d-81e0-0a22e46f7a6f
2025-04-14 18:56:11,325 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-88331772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77510113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2638184420714037339', 'uuid-lslong': '11037148584813882136'}, 'enable': 'true', 'created': '2025-04-14T18:56:08', 'last-modified': '2025-04-14T18:56:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607976'}
2025-04-14 18:56:11,333 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 18:56:11,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88331772 passed
2025-04-14 18:56:11,333 - DEBUG - ====Verifying policy data for ctest-vn-88331772 in API_Server ======
2025-04-14 18:56:11,333 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 18:56:11,341 - DEBUG - Requesting: http://10.0.0.50:8082/domain/db564364-1b1c-41fd-9790-47fbd54991fd
2025-04-14 18:56:11,356 - DEBUG - Requesting: http://10.0.0.50:8082/project/145b31fd-5fe6-4da6-93be-9ffd78baa033
2025-04-14 18:56:11,434 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/249cb6c0-c0a1-405b-992b-d4291b096b18
2025-04-14 18:56:11,446 - DEBUG - ==>Verifying data for policy with id: d27b5a04-c9dc-46ed-b041-9392b322e0fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-77510113', 'ctest-policy-allow-all-64497121']
2025-04-14 18:56:11,446 - INFO - VN ctest-vn-88331772 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 18:56:11,446 - DEBUG - Verifying the vn in opserver
2025-04-14 18:56:11,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-88331772 virtual network link through opserver 10.0.0.50
2025-04-14 18:56:11,446 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 18:56:11,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-88331772', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-88331772?flat'}
2025-04-14 18:56:11,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77510113:ctest-vn-88331772 is found in opserver
2025-04-14 18:56:11,474 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 18:56:11,480 - DEBUG - VRF ids for VN ctest-vn-88331772: {}
2025-04-14 18:56:11,550 - DEBUG - Services list from nova: [