2024-08-23 15:30:31,367 - INFO - Domain Default found not creating
2024-08-23 15:30:31,641 - INFO - Project ctest-TestBasicPolicy-17554919 not found, creating it
2024-08-23 15:30:32,120 - INFO - Created Project:ctest-TestBasicPolicy-17554919, ID : 7844786f-5b9c-428f-8353-e01be79954c3
2024-08-23 15:30:33,652 - INFO - ================================================================================
2024-08-23 15:30:33,652 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-23 15:30:33,652 - 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-08-23 15:30:33,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.6': '0'}} with
2024-08-23 15:30:33,912 - INFO - Initial checks done. Running the testcase now
2024-08-23 15:30:33,912 - INFO -
2024-08-23 15:30:34,478 - DEBUG - Response for create_network : {'network': {'id': '225d7efc-0b65-43f0-8793-b4118790fa03', 'name': 'ctest-vn-04525751', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'project_id': '7844786f5b9c428f8353e01be79954c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-vn-04525751'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 15:30:34,665 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac4b48e2-c944-4e6b-af11-80df075bb478', 'name': '', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'network_id': '225d7efc-0b65-43f0-8793-b4118790fa03', 'ip_version': 4, 'cidr': '156.221.207.0/26', 'allocation_pools': [{'start': '156.221.207.2', 'end': '156.221.207.62'}], 'gateway_ip': '156.221.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.221.207.2', 'tags': [], 'project_id': '7844786f5b9c428f8353e01be79954c3'}}
2024-08-23 15:30:34,683 - INFO - Created VN ctest-vn-04525751
2024-08-23 15:30:34,738 - DEBUG - VN ctest-vn-04525751 UUID is 225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:35,029 - DEBUG - Response for create_network : {'network': {'id': 'd6668643-b843-4426-a9bc-2bd761c4a21f', 'name': 'ctest-vn-74827054', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'project_id': '7844786f5b9c428f8353e01be79954c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-vn-74827054'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 15:30:35,270 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af3101e0-76e6-4dbf-9e9b-39061641db04', 'name': '', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'network_id': 'd6668643-b843-4426-a9bc-2bd761c4a21f', 'ip_version': 4, 'cidr': '49.29.230.0/26', 'allocation_pools': [{'start': '49.29.230.2', 'end': '49.29.230.62'}], 'gateway_ip': '49.29.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.29.230.2', 'tags': [], 'project_id': '7844786f5b9c428f8353e01be79954c3'}}
2024-08-23 15:30:35,292 - INFO - Created VN ctest-vn-74827054
2024-08-23 15:30:35,346 - DEBUG - VN ctest-vn-74827054 UUID is d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:35,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751, 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-17554919:ctest-vn-74827054, 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-08-23 15:30:35,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '225d7efc-0b65-43f0-8793-b4118790fa03', 'name': 'ctest-vn-04525751', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'project_id': '7844786f5b9c428f8353e01be79954c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac4b48e2-c944-4e6b-af11-80df075bb478'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-vn-04525751'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-policy-allow-all-31863416']], 'subnet_ipam': [{'subnet_cidr': '156.221.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 15:30:36,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6668643-b843-4426-a9bc-2bd761c4a21f', 'name': 'ctest-vn-74827054', 'tenant_id': '7844786f5b9c428f8353e01be79954c3', 'project_id': '7844786f5b9c428f8353e01be79954c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af3101e0-76e6-4dbf-9e9b-39061641db04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-vn-74827054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-policy-allow-all-31863416']], 'subnet_ipam': [{'subnet_cidr': '49.29.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 15:30:36,182 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-08-23 15:30:36,480 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-08-23 15:30:36,517 - DEBUG - Requesting: http://10.0.0.48:8082/domain/45b4c2c7-0e4d-4386-8d55-0f8a4f1790a7
2024-08-23 15:30:36,531 - DEBUG - Requesting: http://10.0.0.48:8082/project/7844786f-5b9c-428f-8353-e01be79954c3
2024-08-23 15:30:36,603 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,612 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,621 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7252078-198f-464b-b497-6e749fb98c67
2024-08-23 15:30:36,628 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7252078-198f-464b-b497-6e749fb98c67
2024-08-23 15:30:36,635 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f59f0d43-748a-44cf-9eab-7e02e5770d49
2024-08-23 15:30:36,642 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 15:30:36,642 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,650 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7252078-198f-464b-b497-6e749fb98c67
2024-08-23 15:30:36,662 - INFO - Verified VN network id 9 for VN 225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,662 - INFO - Verifications in API Server for VN ctest-vn-04525751 passed
2024-08-23 15:30:36,662 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,671 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7252078-198f-464b-b497-6e749fb98c67
2024-08-23 15:30:36,678 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c7252078-198f-464b-b497-6e749fb98c67
2024-08-23 15:30:36,687 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f59f0d43-748a-44cf-9eab-7e02e5770d49
2024-08-23 15:30:36,705 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17554919', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2476274991111685104', 'uuid-lslong': '9769350004078606851'}, 'enable': 'true', 'created': '2024-08-23T15:30:34', 'last-modified': '2024-08-23T15:30:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961276'}
2024-08-23 15:30:36,712 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 15:30:36,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04525751 passed
2024-08-23 15:30:36,713 - DEBUG - ====Verifying policy data for ctest-vn-04525751 in API_Server ======
2024-08-23 15:30:36,713 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-08-23 15:30:36,720 - DEBUG - Requesting: http://10.0.0.48:8082/domain/45b4c2c7-0e4d-4386-8d55-0f8a4f1790a7
2024-08-23 15:30:36,736 - DEBUG - Requesting: http://10.0.0.48:8082/project/7844786f-5b9c-428f-8353-e01be79954c3
2024-08-23 15:30:36,815 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/225d7efc-0b65-43f0-8793-b4118790fa03
2024-08-23 15:30:36,825 - DEBUG - ==>Verifying data for policy with id: ac2c4fb5-b6f5-4705-ba3a-1b26171d7454, fqn: ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-policy-allow-all-31863416']
2024-08-23 15:30:36,825 - INFO - VN ctest-vn-04525751 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 15:30:36,825 - DEBUG - Verifying the vn in opserver
2024-08-23 15:30:36,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751 virtual network link through opserver 10.0.0.48
2024-08-23 15:30:36,825 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-08-23 15:30:37,123 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-08-23 15:30:37,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751?flat'}
2024-08-23 15:30:37,191 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-04525751 is found in opserver
2024-08-23 15:30:37,203 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 15:30:37,209 - DEBUG - VRF ids for VN ctest-vn-04525751: {}
2024-08-23 15:30:37,209 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-08-23 15:30:37,216 - DEBUG - Requesting: http://10.0.0.48:8082/domain/45b4c2c7-0e4d-4386-8d55-0f8a4f1790a7
2024-08-23 15:30:37,229 - DEBUG - Requesting: http://10.0.0.48:8082/project/7844786f-5b9c-428f-8353-e01be79954c3
2024-08-23 15:30:37,300 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,312 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,321 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/aa9aa680-03f0-42dd-b72e-b43ec09c765e
2024-08-23 15:30:37,328 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/aa9aa680-03f0-42dd-b72e-b43ec09c765e
2024-08-23 15:30:37,336 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/676386e3-4579-4e0f-82a6-22abc1e06c72
2024-08-23 15:30:37,343 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 15:30:37,343 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,354 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/aa9aa680-03f0-42dd-b72e-b43ec09c765e
2024-08-23 15:30:37,370 - INFO - Verified VN network id 10 for VN d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,370 - INFO - Verifications in API Server for VN ctest-vn-74827054 passed
2024-08-23 15:30:37,370 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,383 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/aa9aa680-03f0-42dd-b72e-b43ec09c765e
2024-08-23 15:30:37,392 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/aa9aa680-03f0-42dd-b72e-b43ec09c765e
2024-08-23 15:30:37,399 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/676386e3-4579-4e0f-82a6-22abc1e06c72
2024-08-23 15:30:37,413 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-74827054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17554919', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15449183197153412134', 'uuid-lslong': '12230698892089664031'}, 'enable': 'true', 'created': '2024-08-23T15:30:34', 'last-modified': '2024-08-23T15:30:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425363'}
2024-08-23 15:30:37,419 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 15:30:37,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74827054 passed
2024-08-23 15:30:37,420 - DEBUG - ====Verifying policy data for ctest-vn-74827054 in API_Server ======
2024-08-23 15:30:37,420 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-08-23 15:30:37,426 - DEBUG - Requesting: http://10.0.0.48:8082/domain/45b4c2c7-0e4d-4386-8d55-0f8a4f1790a7
2024-08-23 15:30:37,440 - DEBUG - Requesting: http://10.0.0.48:8082/project/7844786f-5b9c-428f-8353-e01be79954c3
2024-08-23 15:30:37,512 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6668643-b843-4426-a9bc-2bd761c4a21f
2024-08-23 15:30:37,523 - DEBUG - ==>Verifying data for policy with id: ac2c4fb5-b6f5-4705-ba3a-1b26171d7454, fqn: ['default-domain', 'ctest-TestBasicPolicy-17554919', 'ctest-policy-allow-all-31863416']
2024-08-23 15:30:37,523 - INFO - VN ctest-vn-74827054 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 15:30:37,523 - DEBUG - Verifying the vn in opserver
2024-08-23 15:30:37,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-74827054 virtual network link through opserver 10.0.0.48
2024-08-23 15:30:37,523 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-08-23 15:30:37,535 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-74827054', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-74827054?flat'}
2024-08-23 15:30:37,535 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17554919:ctest-vn-74827054 is found in opserver
2024-08-23 15:30:37,546 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 15:30:37,552 - DEBUG - VRF ids for VN ctest-vn-74827054: {}
2024-08-23 15:30:37,606 - DEBUG - Services list from nova: [