2025-02-20 00:19:23,274 - INFO - Domain Default found not creating
2025-02-20 00:19:23,436 - INFO - Project ctest-TestBasicPolicy-35307469 not found, creating it
2025-02-20 00:19:23,962 - INFO - Created Project:ctest-TestBasicPolicy-35307469, ID : 2d5876da-6979-4d53-a99f-2f84d9243be0
2025-02-20 00:19:25,595 - INFO - ================================================================================
2025-02-20 00:19:25,596 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-20 00:19:25,596 - 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-02-20 00:19:25,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.8': '0'}} with
2025-02-20 00:19:25,852 - INFO - Initial checks done. Running the testcase now
2025-02-20 00:19:25,852 - INFO -
2025-02-20 00:19:26,835 - DEBUG - Response for create_network : {'network': {'id': '2597ed6c-60c8-4ef1-9645-afeca57bb62b', 'name': 'ctest-vn-71020259', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'project_id': '2d5876da69794d53a99f2f84d9243be0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-vn-71020259'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 00:19:27,261 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf9eebb8-c703-4c67-b0bc-e3576c395a6b', 'name': '', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'network_id': '2597ed6c-60c8-4ef1-9645-afeca57bb62b', 'ip_version': 4, 'cidr': '216.34.4.0/26', 'allocation_pools': [{'start': '216.34.4.2', 'end': '216.34.4.62'}], 'gateway_ip': '216.34.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.34.4.2', 'tags': [], 'project_id': '2d5876da69794d53a99f2f84d9243be0'}}
2025-02-20 00:19:27,292 - INFO - Created VN ctest-vn-71020259
2025-02-20 00:19:27,349 - DEBUG - VN ctest-vn-71020259 UUID is 2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:27,677 - DEBUG - Response for create_network : {'network': {'id': '79107826-e594-434a-831e-1b158c6dbd03', 'name': 'ctest-vn-52331706', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'project_id': '2d5876da69794d53a99f2f84d9243be0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-vn-52331706'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 00:19:27,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '847ed036-3ac4-4101-a169-96e28bc60a3c', 'name': '', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'network_id': '79107826-e594-434a-831e-1b158c6dbd03', 'ip_version': 4, 'cidr': '39.189.177.128/26', 'allocation_pools': [{'start': '39.189.177.130', 'end': '39.189.177.190'}], 'gateway_ip': '39.189.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.189.177.130', 'tags': [], 'project_id': '2d5876da69794d53a99f2f84d9243be0'}}
2025-02-20 00:19:27,916 - INFO - Created VN ctest-vn-52331706
2025-02-20 00:19:27,977 - DEBUG - VN ctest-vn-52331706 UUID is 79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:28,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259, 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-35307469:ctest-vn-52331706, 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-02-20 00:19:28,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2597ed6c-60c8-4ef1-9645-afeca57bb62b', 'name': 'ctest-vn-71020259', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'project_id': '2d5876da69794d53a99f2f84d9243be0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf9eebb8-c703-4c67-b0bc-e3576c395a6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-vn-71020259'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-policy-allow-all-87229230']], 'subnet_ipam': [{'subnet_cidr': '216.34.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 00:19:28,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79107826-e594-434a-831e-1b158c6dbd03', 'name': 'ctest-vn-52331706', 'tenant_id': '2d5876da69794d53a99f2f84d9243be0', 'project_id': '2d5876da69794d53a99f2f84d9243be0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['847ed036-3ac4-4101-a169-96e28bc60a3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-vn-52331706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-policy-allow-all-87229230']], 'subnet_ipam': [{'subnet_cidr': '39.189.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 00:19:28,893 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-20 00:19:29,240 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-20 00:19:29,272 - DEBUG - Requesting: http://10.0.0.17:8082/domain/053008e2-80af-47d7-be1e-03d003b763c3
2025-02-20 00:19:29,289 - DEBUG - Requesting: http://10.0.0.17:8082/project/2d5876da-6979-4d53-a99f-2f84d9243be0
2025-02-20 00:19:29,372 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,385 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,397 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/482ed2fd-a461-4454-9bb4-4cbfaeda2e9a
2025-02-20 00:19:29,406 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/482ed2fd-a461-4454-9bb4-4cbfaeda2e9a
2025-02-20 00:19:29,416 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/79c04009-d08d-450b-8ecf-b15f59ba727a
2025-02-20 00:19:29,424 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 00:19:29,424 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,438 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/482ed2fd-a461-4454-9bb4-4cbfaeda2e9a
2025-02-20 00:19:29,458 - INFO - Verified VN network id 9 for VN 2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,459 - INFO - Verifications in API Server for VN ctest-vn-71020259 passed
2025-02-20 00:19:29,459 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,472 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/482ed2fd-a461-4454-9bb4-4cbfaeda2e9a
2025-02-20 00:19:29,482 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/482ed2fd-a461-4454-9bb4-4cbfaeda2e9a
2025-02-20 00:19:29,490 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/79c04009-d08d-450b-8ecf-b15f59ba727a
2025-02-20 00:19:29,505 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35307469', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2708894750622633713', 'uuid-lslong': '10828254310005716523'}, 'enable': 'true', 'created': '2025-02-20T00:19:26', 'last-modified': '2025-02-20T00:19:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.084246'}
2025-02-20 00:19:29,513 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 00:19:29,513 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71020259 passed
2025-02-20 00:19:29,513 - DEBUG - ====Verifying policy data for ctest-vn-71020259 in API_Server ======
2025-02-20 00:19:29,513 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-20 00:19:29,521 - DEBUG - Requesting: http://10.0.0.17:8082/domain/053008e2-80af-47d7-be1e-03d003b763c3
2025-02-20 00:19:29,536 - DEBUG - Requesting: http://10.0.0.17:8082/project/2d5876da-6979-4d53-a99f-2f84d9243be0
2025-02-20 00:19:29,613 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2597ed6c-60c8-4ef1-9645-afeca57bb62b
2025-02-20 00:19:29,629 - DEBUG - ==>Verifying data for policy with id: 8a11b294-5b09-4c7c-80b3-41f8114ed381, fqn: ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-policy-allow-all-87229230']
2025-02-20 00:19:29,629 - INFO - VN ctest-vn-71020259 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 00:19:29,629 - DEBUG - Verifying the vn in opserver
2025-02-20 00:19:29,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259 virtual network link through opserver 10.0.0.17
2025-02-20 00:19:29,629 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-20 00:19:29,967 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-20 00:19:30,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259?flat'}
2025-02-20 00:19:30,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-71020259 is found in opserver
2025-02-20 00:19:30,047 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 00:19:30,053 - DEBUG - VRF ids for VN ctest-vn-71020259: {}
2025-02-20 00:19:30,053 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-20 00:19:30,060 - DEBUG - Requesting: http://10.0.0.17:8082/domain/053008e2-80af-47d7-be1e-03d003b763c3
2025-02-20 00:19:30,073 - DEBUG - Requesting: http://10.0.0.17:8082/project/2d5876da-6979-4d53-a99f-2f84d9243be0
2025-02-20 00:19:30,151 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,164 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,174 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2791fb08-61b9-4797-9d59-f93bf0b490a7
2025-02-20 00:19:30,183 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2791fb08-61b9-4797-9d59-f93bf0b490a7
2025-02-20 00:19:30,191 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/4eca5b5b-890d-40bb-84dd-9c695e5b6768
2025-02-20 00:19:30,198 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 00:19:30,198 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,210 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2791fb08-61b9-4797-9d59-f93bf0b490a7
2025-02-20 00:19:30,227 - INFO - Verified VN network id 10 for VN 79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,228 - INFO - Verifications in API Server for VN ctest-vn-52331706 passed
2025-02-20 00:19:30,228 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,239 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2791fb08-61b9-4797-9d59-f93bf0b490a7
2025-02-20 00:19:30,248 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2791fb08-61b9-4797-9d59-f93bf0b490a7
2025-02-20 00:19:30,256 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/4eca5b5b-890d-40bb-84dd-9c695e5b6768
2025-02-20 00:19:30,273 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-52331706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35307469', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8723604586672440138', 'uuid-lslong': '9448018847634144515'}, 'enable': 'true', 'created': '2025-02-20T00:19:27', 'last-modified': '2025-02-20T00:19:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598570'}
2025-02-20 00:19:30,281 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 00:19:30,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52331706 passed
2025-02-20 00:19:30,281 - DEBUG - ====Verifying policy data for ctest-vn-52331706 in API_Server ======
2025-02-20 00:19:30,281 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-20 00:19:30,288 - DEBUG - Requesting: http://10.0.0.17:8082/domain/053008e2-80af-47d7-be1e-03d003b763c3
2025-02-20 00:19:30,302 - DEBUG - Requesting: http://10.0.0.17:8082/project/2d5876da-6979-4d53-a99f-2f84d9243be0
2025-02-20 00:19:30,385 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/79107826-e594-434a-831e-1b158c6dbd03
2025-02-20 00:19:30,398 - DEBUG - ==>Verifying data for policy with id: 8a11b294-5b09-4c7c-80b3-41f8114ed381, fqn: ['default-domain', 'ctest-TestBasicPolicy-35307469', 'ctest-policy-allow-all-87229230']
2025-02-20 00:19:30,399 - INFO - VN ctest-vn-52331706 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 00:19:30,399 - DEBUG - Verifying the vn in opserver
2025-02-20 00:19:30,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-52331706 virtual network link through opserver 10.0.0.17
2025-02-20 00:19:30,399 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-20 00:19:30,413 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-52331706', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-52331706?flat'}
2025-02-20 00:19:30,413 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35307469:ctest-vn-52331706 is found in opserver
2025-02-20 00:19:30,427 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 00:19:30,433 - DEBUG - VRF ids for VN ctest-vn-52331706: {}
2025-02-20 00:19:30,494 - DEBUG - Services list from nova: [