2024-09-05 15:07:21,480 - INFO - Domain Default found not creating
2024-09-05 15:07:21,650 - INFO - Project ctest-TestBasicPolicy-35209831 not found, creating it
2024-09-05 15:07:22,153 - INFO - Created Project:ctest-TestBasicPolicy-35209831, ID : ce88adb0-4042-417f-9955-fc1ed155f9f5
2024-09-05 15:07:23,664 - INFO - ================================================================================
2024-09-05 15:07:23,665 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-05 15:07:23,665 - 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
2024-09-05 15:07:23,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.18': '0'}} with
2024-09-05 15:07:23,919 - INFO - Initial checks done. Running the testcase now
2024-09-05 15:07:23,919 - INFO -
2024-09-05 15:07:24,461 - DEBUG - Response for create_network : {'network': {'id': '7171b271-1cf8-4afe-bc08-4b08dcf9ff71', 'name': 'ctest-vn-88615910', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'project_id': 'ce88adb04042417f9955fc1ed155f9f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-vn-88615910'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 15:07:24,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e922328-c9b7-4c36-90fe-07fbdcbb382d', 'name': '', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'network_id': '7171b271-1cf8-4afe-bc08-4b08dcf9ff71', 'ip_version': 4, 'cidr': '110.216.159.128/26', 'allocation_pools': [{'start': '110.216.159.130', 'end': '110.216.159.190'}], 'gateway_ip': '110.216.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.216.159.130', 'tags': [], 'project_id': 'ce88adb04042417f9955fc1ed155f9f5'}}
2024-09-05 15:07:24,664 - INFO - Created VN ctest-vn-88615910
2024-09-05 15:07:24,718 - DEBUG - VN ctest-vn-88615910 UUID is 7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:25,014 - DEBUG - Response for create_network : {'network': {'id': 'b8c19e54-583e-4fbf-b725-2ecef6a235af', 'name': 'ctest-vn-09090922', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'project_id': 'ce88adb04042417f9955fc1ed155f9f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-vn-09090922'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 15:07:25,193 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2c636a1-7f41-41e6-8fa5-f7846553872f', 'name': '', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'network_id': 'b8c19e54-583e-4fbf-b725-2ecef6a235af', 'ip_version': 4, 'cidr': '32.184.189.0/26', 'allocation_pools': [{'start': '32.184.189.2', 'end': '32.184.189.62'}], 'gateway_ip': '32.184.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.184.189.2', 'tags': [], 'project_id': 'ce88adb04042417f9955fc1ed155f9f5'}}
2024-09-05 15:07:25,212 - INFO - Created VN ctest-vn-09090922
2024-09-05 15:07:25,262 - DEBUG - VN ctest-vn-09090922 UUID is b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:25,377 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910, 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-35209831:ctest-vn-09090922, 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]
2024-09-05 15:07:25,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7171b271-1cf8-4afe-bc08-4b08dcf9ff71', 'name': 'ctest-vn-88615910', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'project_id': 'ce88adb04042417f9955fc1ed155f9f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e922328-c9b7-4c36-90fe-07fbdcbb382d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-vn-88615910'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-policy-allow-all-91966389']], 'subnet_ipam': [{'subnet_cidr': '110.216.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 15:07:25,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8c19e54-583e-4fbf-b725-2ecef6a235af', 'name': 'ctest-vn-09090922', 'tenant_id': 'ce88adb04042417f9955fc1ed155f9f5', 'project_id': 'ce88adb04042417f9955fc1ed155f9f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2c636a1-7f41-41e6-8fa5-f7846553872f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-vn-09090922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-policy-allow-all-91966389']], 'subnet_ipam': [{'subnet_cidr': '32.184.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 15:07:26,070 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-05 15:07:26,375 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-05 15:07:26,410 - DEBUG - Requesting: http://10.0.0.17:8082/domain/24739fcd-2310-4330-9649-a1c3856354b1
2024-09-05 15:07:26,424 - DEBUG - Requesting: http://10.0.0.17:8082/project/ce88adb0-4042-417f-9955-fc1ed155f9f5
2024-09-05 15:07:26,495 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,508 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,517 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/0e00531d-5715-4e9a-a14c-5300ec34ec8b
2024-09-05 15:07:26,524 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/0e00531d-5715-4e9a-a14c-5300ec34ec8b
2024-09-05 15:07:26,531 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/f77f83cc-ee7f-4c71-9ca2-53aa6f3142fc
2024-09-05 15:07:26,537 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 15:07:26,537 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,544 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/0e00531d-5715-4e9a-a14c-5300ec34ec8b
2024-09-05 15:07:26,555 - INFO - Verified VN network id 9 for VN 7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,555 - INFO - Verifications in API Server for VN ctest-vn-88615910 passed
2024-09-05 15:07:26,555 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,563 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/0e00531d-5715-4e9a-a14c-5300ec34ec8b
2024-09-05 15:07:26,568 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/0e00531d-5715-4e9a-a14c-5300ec34ec8b
2024-09-05 15:07:26,574 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/f77f83cc-ee7f-4c71-9ca2-53aa6f3142fc
2024-09-05 15:07:26,586 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35209831', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8174510997541243646', 'uuid-lslong': '13549161980383330161'}, 'enable': 'true', 'created': '2024-09-05T15:07:24', 'last-modified': '2024-09-05T15:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929518'}
2024-09-05 15:07:26,592 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 15:07:26,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88615910 passed
2024-09-05 15:07:26,592 - DEBUG - ====Verifying policy data for ctest-vn-88615910 in API_Server ======
2024-09-05 15:07:26,592 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-05 15:07:26,598 - DEBUG - Requesting: http://10.0.0.17:8082/domain/24739fcd-2310-4330-9649-a1c3856354b1
2024-09-05 15:07:26,611 - DEBUG - Requesting: http://10.0.0.17:8082/project/ce88adb0-4042-417f-9955-fc1ed155f9f5
2024-09-05 15:07:26,680 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7171b271-1cf8-4afe-bc08-4b08dcf9ff71
2024-09-05 15:07:26,689 - DEBUG - ==>Verifying data for policy with id: 0a209216-b4df-46a3-829e-e432c28eab5d, fqn: ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-policy-allow-all-91966389']
2024-09-05 15:07:26,689 - INFO - VN ctest-vn-88615910 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 15:07:26,690 - DEBUG - Verifying the vn in opserver
2024-09-05 15:07:26,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910 virtual network link through opserver 10.0.0.17
2024-09-05 15:07:26,690 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-05 15:07:27,008 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-05 15:07:27,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910?flat'}
2024-09-05 15:07:27,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-88615910 is found in opserver
2024-09-05 15:07:27,082 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 15:07:27,086 - DEBUG - VRF ids for VN ctest-vn-88615910: {}
2024-09-05 15:07:27,086 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-05 15:07:27,093 - DEBUG - Requesting: http://10.0.0.17:8082/domain/24739fcd-2310-4330-9649-a1c3856354b1
2024-09-05 15:07:27,107 - DEBUG - Requesting: http://10.0.0.17:8082/project/ce88adb0-4042-417f-9955-fc1ed155f9f5
2024-09-05 15:07:27,181 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,193 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,201 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3e83c117-4634-4341-af7e-e2ce02a9061d
2024-09-05 15:07:27,209 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3e83c117-4634-4341-af7e-e2ce02a9061d
2024-09-05 15:07:27,215 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/b1fe3268-157e-4450-8988-f304a5ab114b
2024-09-05 15:07:27,222 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 15:07:27,222 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,229 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3e83c117-4634-4341-af7e-e2ce02a9061d
2024-09-05 15:07:27,241 - INFO - Verified VN network id 10 for VN b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,241 - INFO - Verifications in API Server for VN ctest-vn-09090922 passed
2024-09-05 15:07:27,242 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,251 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3e83c117-4634-4341-af7e-e2ce02a9061d
2024-09-05 15:07:27,257 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3e83c117-4634-4341-af7e-e2ce02a9061d
2024-09-05 15:07:27,264 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/b1fe3268-157e-4450-8988-f304a5ab114b
2024-09-05 15:07:27,276 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-09090922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35209831', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13313096058578816959', 'uuid-lslong': '13197005749515072943'}, 'enable': 'true', 'created': '2024-09-05T15:07:24', 'last-modified': '2024-09-05T15:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.381972'}
2024-09-05 15:07:27,282 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 15:07:27,283 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09090922 passed
2024-09-05 15:07:27,283 - DEBUG - ====Verifying policy data for ctest-vn-09090922 in API_Server ======
2024-09-05 15:07:27,283 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-05 15:07:27,288 - DEBUG - Requesting: http://10.0.0.17:8082/domain/24739fcd-2310-4330-9649-a1c3856354b1
2024-09-05 15:07:27,299 - DEBUG - Requesting: http://10.0.0.17:8082/project/ce88adb0-4042-417f-9955-fc1ed155f9f5
2024-09-05 15:07:27,372 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b8c19e54-583e-4fbf-b725-2ecef6a235af
2024-09-05 15:07:27,381 - DEBUG - ==>Verifying data for policy with id: 0a209216-b4df-46a3-829e-e432c28eab5d, fqn: ['default-domain', 'ctest-TestBasicPolicy-35209831', 'ctest-policy-allow-all-91966389']
2024-09-05 15:07:27,381 - INFO - VN ctest-vn-09090922 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 15:07:27,381 - DEBUG - Verifying the vn in opserver
2024-09-05 15:07:27,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-09090922 virtual network link through opserver 10.0.0.17
2024-09-05 15:07:27,381 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-05 15:07:27,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-09090922', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-09090922?flat'}
2024-09-05 15:07:27,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35209831:ctest-vn-09090922 is found in opserver
2024-09-05 15:07:27,407 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 15:07:27,412 - DEBUG - VRF ids for VN ctest-vn-09090922: {}
2024-09-05 15:07:27,474 - DEBUG - Services list from nova: [