2025-08-31 00:11:21,938 - INFO - Domain Default found not creating
2025-08-31 00:11:22,099 - INFO - Project ctest-TestBasicPolicy-97920660 not found, creating it
2025-08-31 00:11:22,546 - INFO - Created Project:ctest-TestBasicPolicy-97920660, ID : cb598dd5-fa65-4294-8b61-7052e9cc5a7a
2025-08-31 00:11:24,009 - INFO - ================================================================================
2025-08-31 00:11:24,010 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-31 00:11:24,010 - 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-08-31 00:11:24,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-31 00:11:24,264 - INFO - Initial checks done. Running the testcase now
2025-08-31 00:11:24,264 - INFO -
2025-08-31 00:11:24,805 - DEBUG - Response for create_network : {'network': {'id': '6b34c5f8-612a-4e59-9465-b2c45563a7c7', 'name': 'ctest-vn-69650266', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-vn-69650266'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 00:11:24,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb990c76-58b5-4f71-bfe8-b1541e4b9e33', 'name': '', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'network_id': '6b34c5f8-612a-4e59-9465-b2c45563a7c7', 'ip_version': 4, 'cidr': '67.224.122.192/26', 'allocation_pools': [{'start': '67.224.122.194', 'end': '67.224.122.254'}], 'gateway_ip': '67.224.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.224.122.194', 'tags': [], 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a'}}
2025-08-31 00:11:25,004 - INFO - Created VN ctest-vn-69650266
2025-08-31 00:11:25,058 - DEBUG - VN ctest-vn-69650266 UUID is 6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:25,347 - DEBUG - Response for create_network : {'network': {'id': '0aa7580b-7255-4101-9f6b-160faec382e4', 'name': 'ctest-vn-48699446', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-vn-48699446'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 00:11:25,581 - DEBUG - Response for create_subnet : {'subnet': {'id': '0459f6d7-777e-48bd-8181-8646014d1335', 'name': '', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'network_id': '0aa7580b-7255-4101-9f6b-160faec382e4', 'ip_version': 4, 'cidr': '90.144.195.128/26', 'allocation_pools': [{'start': '90.144.195.130', 'end': '90.144.195.190'}], 'gateway_ip': '90.144.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.144.195.130', 'tags': [], 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a'}}
2025-08-31 00:11:25,601 - INFO - Created VN ctest-vn-48699446
2025-08-31 00:11:25,654 - DEBUG - VN ctest-vn-48699446 UUID is 0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:25,771 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266, 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-97920660:ctest-vn-48699446, 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-08-31 00:11:26,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b34c5f8-612a-4e59-9465-b2c45563a7c7', 'name': 'ctest-vn-69650266', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb990c76-58b5-4f71-bfe8-b1541e4b9e33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-vn-69650266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-policy-allow-all-77460021']], 'subnet_ipam': [{'subnet_cidr': '67.224.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 00:11:26,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aa7580b-7255-4101-9f6b-160faec382e4', 'name': 'ctest-vn-48699446', 'tenant_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'project_id': 'cb598dd5fa6542948b617052e9cc5a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0459f6d7-777e-48bd-8181-8646014d1335'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-vn-48699446'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-policy-allow-all-77460021']], 'subnet_ipam': [{'subnet_cidr': '90.144.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 00:11:26,458 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-31 00:11:26,775 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-31 00:11:26,806 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae
2025-08-31 00:11:26,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/cb598dd5-fa65-4294-8b61-7052e9cc5a7a
2025-08-31 00:11:26,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:26,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:26,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba121d9f-7da5-4333-bfba-92ccb05dd7c3
2025-08-31 00:11:26,928 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba121d9f-7da5-4333-bfba-92ccb05dd7c3
2025-08-31 00:11:26,937 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f2147db4-c772-4c5a-9cd8-7e575a175a85
2025-08-31 00:11:26,946 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 00:11:26,946 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:26,956 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba121d9f-7da5-4333-bfba-92ccb05dd7c3
2025-08-31 00:11:26,975 - INFO - Verified VN network id 11 for VN 6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:26,975 - INFO - Verifications in API Server for VN ctest-vn-69650266 passed
2025-08-31 00:11:26,975 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:26,986 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba121d9f-7da5-4333-bfba-92ccb05dd7c3
2025-08-31 00:11:26,996 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba121d9f-7da5-4333-bfba-92ccb05dd7c3
2025-08-31 00:11:27,007 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f2147db4-c772-4c5a-9cd8-7e575a175a85
2025-08-31 00:11:27,021 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97920660', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7725016931419967065', 'uuid-lslong': '10693149446577039303'}, 'enable': 'true', 'created': '2025-08-31T00:11:24', 'last-modified': '2025-08-31T00:11:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973767'}
2025-08-31 00:11:27,028 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 00:11:27,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69650266 passed
2025-08-31 00:11:27,028 - DEBUG - ====Verifying policy data for ctest-vn-69650266 in API_Server ======
2025-08-31 00:11:27,028 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-31 00:11:27,035 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae
2025-08-31 00:11:27,048 - DEBUG - Requesting: http://10.0.0.254:8082/project/cb598dd5-fa65-4294-8b61-7052e9cc5a7a
2025-08-31 00:11:27,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b34c5f8-612a-4e59-9465-b2c45563a7c7
2025-08-31 00:11:27,137 - DEBUG - ==>Verifying data for policy with id: 1d1b6e1b-9ec4-480c-92bc-d0ab425bc674, fqn: ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-policy-allow-all-77460021']
2025-08-31 00:11:27,137 - INFO - VN ctest-vn-69650266 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 00:11:27,137 - DEBUG - Verifying the vn in opserver
2025-08-31 00:11:27,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266 virtual network link through opserver 10.0.0.254
2025-08-31 00:11:27,138 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-31 00:11:27,434 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-31 00:11:27,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266?flat'}
2025-08-31 00:11:27,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-69650266 is found in opserver
2025-08-31 00:11:27,505 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 00:11:27,509 - DEBUG - VRF ids for VN ctest-vn-69650266: {}
2025-08-31 00:11:27,509 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-31 00:11:27,515 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae
2025-08-31 00:11:27,526 - DEBUG - Requesting: http://10.0.0.254:8082/project/cb598dd5-fa65-4294-8b61-7052e9cc5a7a
2025-08-31 00:11:27,595 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,605 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,615 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/233537c1-a6d0-4d51-ba6c-563b3c98d8b3
2025-08-31 00:11:27,622 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/233537c1-a6d0-4d51-ba6c-563b3c98d8b3
2025-08-31 00:11:27,630 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e3b933cf-2b4e-4bf1-94d8-7407243494a2
2025-08-31 00:11:27,637 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 00:11:27,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/233537c1-a6d0-4d51-ba6c-563b3c98d8b3
2025-08-31 00:11:27,664 - INFO - Verified VN network id 12 for VN 0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,665 - INFO - Verifications in API Server for VN ctest-vn-48699446 passed
2025-08-31 00:11:27,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,674 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/233537c1-a6d0-4d51-ba6c-563b3c98d8b3
2025-08-31 00:11:27,681 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/233537c1-a6d0-4d51-ba6c-563b3c98d8b3
2025-08-31 00:11:27,688 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e3b933cf-2b4e-4bf1-94d8-7407243494a2
2025-08-31 00:11:27,702 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-48699446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97920660', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '767679067676033281', 'uuid-lslong': '11487299531150951140'}, 'enable': 'true', 'created': '2025-08-31T00:11:25', 'last-modified': '2025-08-31T00:11:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462878'}
2025-08-31 00:11:27,708 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 00:11:27,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48699446 passed
2025-08-31 00:11:27,708 - DEBUG - ====Verifying policy data for ctest-vn-48699446 in API_Server ======
2025-08-31 00:11:27,709 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-31 00:11:27,716 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae
2025-08-31 00:11:27,728 - DEBUG - Requesting: http://10.0.0.254:8082/project/cb598dd5-fa65-4294-8b61-7052e9cc5a7a
2025-08-31 00:11:27,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0aa7580b-7255-4101-9f6b-160faec382e4
2025-08-31 00:11:27,806 - DEBUG - ==>Verifying data for policy with id: 1d1b6e1b-9ec4-480c-92bc-d0ab425bc674, fqn: ['default-domain', 'ctest-TestBasicPolicy-97920660', 'ctest-policy-allow-all-77460021']
2025-08-31 00:11:27,806 - INFO - VN ctest-vn-48699446 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 00:11:27,806 - DEBUG - Verifying the vn in opserver
2025-08-31 00:11:27,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-48699446 virtual network link through opserver 10.0.0.254
2025-08-31 00:11:27,806 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-31 00:11:27,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-48699446', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-48699446?flat'}
2025-08-31 00:11:27,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97920660:ctest-vn-48699446 is found in opserver
2025-08-31 00:11:27,825 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 00:11:27,829 - DEBUG - VRF ids for VN ctest-vn-48699446: {}
2025-08-31 00:11:27,888 - DEBUG - Services list from nova: [