2025-03-28 15:55:47,313 - INFO - Domain Default found not creating
2025-03-28 15:55:47,482 - INFO - Project ctest-TestBasicPolicy-25687656 not found, creating it
2025-03-28 15:55:47,984 - INFO - Created Project:ctest-TestBasicPolicy-25687656, ID : 41532f61-f1a0-4e1b-a038-86bc72ea10b3
2025-03-28 15:55:49,516 - INFO - ================================================================================
2025-03-28 15:55:49,516 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 15:55:49,516 - 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-03-28 15:55:49,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.23': '0'}} with
2025-03-28 15:55:49,770 - INFO - Initial checks done. Running the testcase now
2025-03-28 15:55:49,771 - INFO -
2025-03-28 15:55:50,362 - DEBUG - Response for create_network : {'network': {'id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'name': 'ctest-vn-56341898', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-56341898'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 15:55:50,530 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b68e989d-4d43-4138-a6a9-bae07e51bccf', 'name': '', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'network_id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'ip_version': 4, 'cidr': '49.168.179.0/26', 'allocation_pools': [{'start': '49.168.179.2', 'end': '49.168.179.62'}], 'gateway_ip': '49.168.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.168.179.2', 'tags': [], 'project_id': '41532f61f1a04e1ba03886bc72ea10b3'}}
2025-03-28 15:55:50,549 - INFO - Created VN ctest-vn-56341898
2025-03-28 15:55:50,604 - DEBUG - VN ctest-vn-56341898 UUID is 11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:50,914 - DEBUG - Response for create_network : {'network': {'id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'name': 'ctest-vn-00650476', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-00650476'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 15:55:51,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '505c680f-8dcb-45ed-9a20-47ebceb084dc', 'name': '', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'network_id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'ip_version': 4, 'cidr': '182.33.146.0/26', 'allocation_pools': [{'start': '182.33.146.2', 'end': '182.33.146.62'}], 'gateway_ip': '182.33.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.33.146.2', 'tags': [], 'project_id': '41532f61f1a04e1ba03886bc72ea10b3'}}
2025-03-28 15:55:51,118 - INFO - Created VN ctest-vn-00650476
2025-03-28 15:55:51,172 - DEBUG - VN ctest-vn-00650476 UUID is 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:51,290 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898, 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-25687656:ctest-vn-00650476, 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-03-28 15:55:51,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'name': 'ctest-vn-56341898', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b68e989d-4d43-4138-a6a9-bae07e51bccf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-56341898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']], 'subnet_ipam': [{'subnet_cidr': '49.168.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 15:55:51,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'name': 'ctest-vn-00650476', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['505c680f-8dcb-45ed-9a20-47ebceb084dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-00650476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']], 'subnet_ipam': [{'subnet_cidr': '182.33.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 15:55:52,036 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 15:55:52,339 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 15:55:52,373 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473
2025-03-28 15:55:52,391 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3
2025-03-28 15:55:52,472 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,487 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,499 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed
2025-03-28 15:55:52,509 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed
2025-03-28 15:55:52,519 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/59e00167-e874-46fd-b456-b757c2d27399
2025-03-28 15:55:52,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 15:55:52,527 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,537 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed
2025-03-28 15:55:52,555 - INFO - Verified VN network id 8 for VN 11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,556 - INFO - Verifications in API Server for VN ctest-vn-56341898 passed
2025-03-28 15:55:52,556 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,569 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed
2025-03-28 15:55:52,578 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed
2025-03-28 15:55:52,587 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/59e00167-e874-46fd-b456-b757c2d27399
2025-03-28 15:55:52,601 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25687656', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1275257785190269075', 'uuid-lslong': '10854481185444833799'}, 'enable': 'true', 'created': '2025-03-28T15:55:50', 'last-modified': '2025-03-28T15:55:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029874'}
2025-03-28 15:55:52,609 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 15:55:52,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56341898 passed
2025-03-28 15:55:52,609 - DEBUG - ====Verifying policy data for ctest-vn-56341898 in API_Server ======
2025-03-28 15:55:52,609 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 15:55:52,617 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473
2025-03-28 15:55:52,635 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3
2025-03-28 15:55:52,715 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07
2025-03-28 15:55:52,726 - DEBUG - ==>Verifying data for policy with id: 8fb2c930-843e-4ec6-8610-4932f999b9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']
2025-03-28 15:55:52,726 - INFO - VN ctest-vn-56341898 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 15:55:52,727 - DEBUG - Verifying the vn in opserver
2025-03-28 15:55:52,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898 virtual network link through opserver 10.0.0.34
2025-03-28 15:55:52,727 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 15:55:53,020 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 15:55:53,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898?flat'}
2025-03-28 15:55:53,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898 is found in opserver
2025-03-28 15:55:53,092 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 15:55:53,097 - DEBUG - VRF ids for VN ctest-vn-56341898: {}
2025-03-28 15:55:53,097 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 15:55:53,103 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473
2025-03-28 15:55:53,115 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3
2025-03-28 15:55:53,192 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,204 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,217 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573
2025-03-28 15:55:53,227 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573
2025-03-28 15:55:53,238 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c7a253d8-b167-4b60-9978-a6388af5bb78
2025-03-28 15:55:53,245 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 15:55:53,245 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,255 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573
2025-03-28 15:55:53,270 - INFO - Verified VN network id 9 for VN 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,270 - INFO - Verifications in API Server for VN ctest-vn-00650476 passed
2025-03-28 15:55:53,270 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,282 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573
2025-03-28 15:55:53,289 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573
2025-03-28 15:55:53,296 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c7a253d8-b167-4b60-9978-a6388af5bb78
2025-03-28 15:55:53,309 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25687656', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '990365838609369678', 'uuid-lslong': '13733126910180452267'}, 'enable': 'true', 'created': '2025-03-28T15:55:50', 'last-modified': '2025-03-28T15:55:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494700'}
2025-03-28 15:55:53,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 15:55:53,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00650476 passed
2025-03-28 15:55:53,316 - DEBUG - ====Verifying policy data for ctest-vn-00650476 in API_Server ======
2025-03-28 15:55:53,316 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 15:55:53,322 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473
2025-03-28 15:55:53,334 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3
2025-03-28 15:55:53,411 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab
2025-03-28 15:55:53,421 - DEBUG - ==>Verifying data for policy with id: 8fb2c930-843e-4ec6-8610-4932f999b9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']
2025-03-28 15:55:53,421 - INFO - VN ctest-vn-00650476 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 15:55:53,421 - DEBUG - Verifying the vn in opserver
2025-03-28 15:55:53,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476 virtual network link through opserver 10.0.0.34
2025-03-28 15:55:53,421 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 15:55:53,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476?flat'}
2025-03-28 15:55:53,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476 is found in opserver
2025-03-28 15:55:53,443 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 15:55:53,449 - DEBUG - VRF ids for VN ctest-vn-00650476: {}
2025-03-28 15:55:53,513 - DEBUG - Services list from nova: [