2025-05-29 02:27:00,688 - INFO - Domain Default found not creating
2025-05-29 02:27:00,838 - INFO - Project ctest-TestBasicPolicy-39208612 not found, creating it
2025-05-29 02:27:01,302 - INFO - Created Project:ctest-TestBasicPolicy-39208612, ID : 85e80f93-3b62-4490-acb1-469fd87942d1
2025-05-29 02:27:02,945 - INFO - ================================================================================
2025-05-29 02:27:02,945 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-29 02:27:02,945 - 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-29 02:27:03,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-29 02:27:03,205 - INFO - Initial checks done. Running the testcase now
2025-05-29 02:27:03,205 - INFO -
2025-05-29 02:27:03,807 - DEBUG - Response for create_network : {'network': {'id': '53ae3cdb-1a32-4a45-a0e9-4bfc3d980066', 'name': 'ctest-vn-55925429', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'project_id': '85e80f933b624490acb1469fd87942d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-vn-55925429'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:27:04,011 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da1152d3-e1a0-4ed1-8b4b-54932b11b54a', 'name': '', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'network_id': '53ae3cdb-1a32-4a45-a0e9-4bfc3d980066', 'ip_version': 4, 'cidr': '137.4.63.192/26', 'allocation_pools': [{'start': '137.4.63.194', 'end': '137.4.63.254'}], 'gateway_ip': '137.4.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.4.63.194', 'tags': [], 'project_id': '85e80f933b624490acb1469fd87942d1'}}
2025-05-29 02:27:04,030 - INFO - Created VN ctest-vn-55925429
2025-05-29 02:27:04,086 - DEBUG - VN ctest-vn-55925429 UUID is 53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:04,401 - DEBUG - Response for create_network : {'network': {'id': '0027ae3c-5283-43d2-b29e-c2369ccc6644', 'name': 'ctest-vn-45027496', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'project_id': '85e80f933b624490acb1469fd87942d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-vn-45027496'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:27:04,562 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afefd04f-a3d6-4c85-a7df-a9b82ff32861', 'name': '', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'network_id': '0027ae3c-5283-43d2-b29e-c2369ccc6644', 'ip_version': 4, 'cidr': '50.72.224.128/26', 'allocation_pools': [{'start': '50.72.224.130', 'end': '50.72.224.190'}], 'gateway_ip': '50.72.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.72.224.130', 'tags': [], 'project_id': '85e80f933b624490acb1469fd87942d1'}}
2025-05-29 02:27:04,581 - INFO - Created VN ctest-vn-45027496
2025-05-29 02:27:04,634 - DEBUG - VN ctest-vn-45027496 UUID is 0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:04,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429, 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-39208612:ctest-vn-45027496, 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-29 02:27:05,055 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53ae3cdb-1a32-4a45-a0e9-4bfc3d980066', 'name': 'ctest-vn-55925429', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'project_id': '85e80f933b624490acb1469fd87942d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da1152d3-e1a0-4ed1-8b4b-54932b11b54a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-vn-55925429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-policy-allow-all-08654149']], 'subnet_ipam': [{'subnet_cidr': '137.4.63.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:27:05,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0027ae3c-5283-43d2-b29e-c2369ccc6644', 'name': 'ctest-vn-45027496', 'tenant_id': '85e80f933b624490acb1469fd87942d1', 'project_id': '85e80f933b624490acb1469fd87942d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afefd04f-a3d6-4c85-a7df-a9b82ff32861'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-vn-45027496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-policy-allow-all-08654149']], 'subnet_ipam': [{'subnet_cidr': '50.72.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:27:05,458 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 02:27:05,804 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 02:27:05,835 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3f7fd15-41f7-4da6-8e46-6701f6716e43
2025-05-29 02:27:05,850 - DEBUG - Requesting: http://10.0.0.50:8082/project/85e80f93-3b62-4490-acb1-469fd87942d1
2025-05-29 02:27:05,926 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:05,940 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:05,953 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4ba5a5b-875a-4798-9c2b-4d44f42c47da
2025-05-29 02:27:05,962 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4ba5a5b-875a-4798-9c2b-4d44f42c47da
2025-05-29 02:27:05,971 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7161e1eb-667b-4b9f-a33c-2088efa1e3a0
2025-05-29 02:27:05,978 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 02:27:05,978 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:05,989 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4ba5a5b-875a-4798-9c2b-4d44f42c47da
2025-05-29 02:27:06,005 - INFO - Verified VN network id 8 for VN 53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:06,006 - INFO - Verifications in API Server for VN ctest-vn-55925429 passed
2025-05-29 02:27:06,006 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:06,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4ba5a5b-875a-4798-9c2b-4d44f42c47da
2025-05-29 02:27:06,026 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4ba5a5b-875a-4798-9c2b-4d44f42c47da
2025-05-29 02:27:06,033 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7161e1eb-667b-4b9f-a33c-2088efa1e3a0
2025-05-29 02:27:06,045 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39208612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6029823862830680645', 'uuid-lslong': '11594882262379266150'}, 'enable': 'true', 'created': '2025-05-29T02:27:03', 'last-modified': '2025-05-29T02:27:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019514'}
2025-05-29 02:27:06,052 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 02:27:06,052 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55925429 passed
2025-05-29 02:27:06,052 - DEBUG - ====Verifying policy data for ctest-vn-55925429 in API_Server ======
2025-05-29 02:27:06,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 02:27:06,058 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3f7fd15-41f7-4da6-8e46-6701f6716e43
2025-05-29 02:27:06,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/85e80f93-3b62-4490-acb1-469fd87942d1
2025-05-29 02:27:06,143 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/53ae3cdb-1a32-4a45-a0e9-4bfc3d980066
2025-05-29 02:27:06,153 - DEBUG - ==>Verifying data for policy with id: 2ee05698-2b5d-47b2-8237-95a5bc5009c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-policy-allow-all-08654149']
2025-05-29 02:27:06,153 - INFO - VN ctest-vn-55925429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 02:27:06,153 - DEBUG - Verifying the vn in opserver
2025-05-29 02:27:06,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429 virtual network link through opserver 10.0.0.50
2025-05-29 02:27:06,153 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 02:27:06,492 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 02:27:06,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429?flat'}
2025-05-29 02:27:06,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-55925429 is found in opserver
2025-05-29 02:27:06,564 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 02:27:06,569 - DEBUG - VRF ids for VN ctest-vn-55925429: {}
2025-05-29 02:27:06,569 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 02:27:06,575 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3f7fd15-41f7-4da6-8e46-6701f6716e43
2025-05-29 02:27:06,587 - DEBUG - Requesting: http://10.0.0.50:8082/project/85e80f93-3b62-4490-acb1-469fd87942d1
2025-05-29 02:27:06,664 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,677 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5272b70-7553-4039-98f4-59586eaf427d
2025-05-29 02:27:06,696 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5272b70-7553-4039-98f4-59586eaf427d
2025-05-29 02:27:06,703 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4c9035a-3306-4fcc-9e8f-8f5eb940124c
2025-05-29 02:27:06,709 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 02:27:06,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,719 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5272b70-7553-4039-98f4-59586eaf427d
2025-05-29 02:27:06,734 - INFO - Verified VN network id 9 for VN 0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,734 - INFO - Verifications in API Server for VN ctest-vn-45027496 passed
2025-05-29 02:27:06,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,744 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5272b70-7553-4039-98f4-59586eaf427d
2025-05-29 02:27:06,751 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5272b70-7553-4039-98f4-59586eaf427d
2025-05-29 02:27:06,758 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4c9035a-3306-4fcc-9e8f-8f5eb940124c
2025-05-29 02:27:06,771 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-45027496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39208612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11169098197320658', 'uuid-lslong': '12870938324886120004'}, 'enable': 'true', 'created': '2025-05-29T02:27:04', 'last-modified': '2025-05-29T02:27:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505953'}
2025-05-29 02:27:06,777 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 02:27:06,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45027496 passed
2025-05-29 02:27:06,778 - DEBUG - ====Verifying policy data for ctest-vn-45027496 in API_Server ======
2025-05-29 02:27:06,778 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 02:27:06,783 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3f7fd15-41f7-4da6-8e46-6701f6716e43
2025-05-29 02:27:06,795 - DEBUG - Requesting: http://10.0.0.50:8082/project/85e80f93-3b62-4490-acb1-469fd87942d1
2025-05-29 02:27:06,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0027ae3c-5283-43d2-b29e-c2369ccc6644
2025-05-29 02:27:06,880 - DEBUG - ==>Verifying data for policy with id: 2ee05698-2b5d-47b2-8237-95a5bc5009c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-39208612', 'ctest-policy-allow-all-08654149']
2025-05-29 02:27:06,880 - INFO - VN ctest-vn-45027496 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 02:27:06,880 - DEBUG - Verifying the vn in opserver
2025-05-29 02:27:06,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-45027496 virtual network link through opserver 10.0.0.50
2025-05-29 02:27:06,880 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 02:27:06,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-45027496', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-45027496?flat'}
2025-05-29 02:27:06,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39208612:ctest-vn-45027496 is found in opserver
2025-05-29 02:27:06,903 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 02:27:06,908 - DEBUG - VRF ids for VN ctest-vn-45027496: {}
2025-05-29 02:27:06,965 - DEBUG - Services list from nova: [