2024-08-26 21:25:55,206 - INFO - Domain Default found not creating
2024-08-26 21:25:55,355 - INFO - Project ctest-TestBasicPolicy-47312299 not found, creating it
2024-08-26 21:25:55,806 - INFO - Created Project:ctest-TestBasicPolicy-47312299, ID : 365a889e-444d-48f3-93ea-09b3f8595b90
2024-08-26 21:25:57,284 - INFO - ================================================================================
2024-08-26 21:25:57,284 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 21:25:57,284 - 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-26 21:25:57,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.68': {'10.20.0.6': '0'}} with
2024-08-26 21:25:57,539 - INFO - Initial checks done. Running the testcase now
2024-08-26 21:25:57,539 - INFO -
2024-08-26 21:26:00,085 - DEBUG - Response for create_network : {'network': {'id': '50605d89-d283-4d57-8093-fded0ee69a01', 'name': 'ctest-vn-18909350', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'project_id': '365a889e444d48f393ea09b3f8595b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-vn-18909350'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:26:00,270 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4ba8345-a0b1-4dc3-a392-ad193c01e12e', 'name': '', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'network_id': '50605d89-d283-4d57-8093-fded0ee69a01', 'ip_version': 4, 'cidr': '80.189.45.0/26', 'allocation_pools': [{'start': '80.189.45.2', 'end': '80.189.45.62'}], 'gateway_ip': '80.189.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.189.45.2', 'tags': [], 'project_id': '365a889e444d48f393ea09b3f8595b90'}}
2024-08-26 21:26:00,288 - INFO - Created VN ctest-vn-18909350
2024-08-26 21:26:00,340 - DEBUG - VN ctest-vn-18909350 UUID is 50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:00,703 - DEBUG - Response for create_network : {'network': {'id': 'd37af0bb-5f4f-4d53-aedf-2a392e8e9aae', 'name': 'ctest-vn-27872186', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'project_id': '365a889e444d48f393ea09b3f8595b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-vn-27872186'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:26:03,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '05355f88-fb6c-4a79-9139-544c5ae0b6fb', 'name': '', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'network_id': 'd37af0bb-5f4f-4d53-aedf-2a392e8e9aae', 'ip_version': 4, 'cidr': '22.35.213.128/26', 'allocation_pools': [{'start': '22.35.213.130', 'end': '22.35.213.190'}], 'gateway_ip': '22.35.213.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.35.213.130', 'tags': [], 'project_id': '365a889e444d48f393ea09b3f8595b90'}}
2024-08-26 21:26:03,406 - INFO - Created VN ctest-vn-27872186
2024-08-26 21:26:03,460 - DEBUG - VN ctest-vn-27872186 UUID is d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:03,574 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350, 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-47312299:ctest-vn-27872186, 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-26 21:26:03,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50605d89-d283-4d57-8093-fded0ee69a01', 'name': 'ctest-vn-18909350', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'project_id': '365a889e444d48f393ea09b3f8595b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4ba8345-a0b1-4dc3-a392-ad193c01e12e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-vn-18909350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-policy-allow-all-52417580']], 'subnet_ipam': [{'subnet_cidr': '80.189.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:26:04,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd37af0bb-5f4f-4d53-aedf-2a392e8e9aae', 'name': 'ctest-vn-27872186', 'tenant_id': '365a889e444d48f393ea09b3f8595b90', 'project_id': '365a889e444d48f393ea09b3f8595b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05355f88-fb6c-4a79-9139-544c5ae0b6fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-vn-27872186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-policy-allow-all-52417580']], 'subnet_ipam': [{'subnet_cidr': '22.35.213.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 21:26:04,300 - DEBUG - Requesting: http://10.0.0.68:8082/domains
2024-08-26 21:26:04,597 - DEBUG - Requesting: http://10.0.0.68:8082/domains
2024-08-26 21:26:04,627 - DEBUG - Requesting: http://10.0.0.68:8082/domain/a44a4fde-21b8-412c-b7f2-be0ef55b8e5e
2024-08-26 21:26:04,640 - DEBUG - Requesting: http://10.0.0.68:8082/project/365a889e-444d-48f3-93ea-09b3f8595b90
2024-08-26 21:26:04,715 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,725 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,733 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/f9d32d04-1c27-4978-99c0-120e422d9a70
2024-08-26 21:26:04,740 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/f9d32d04-1c27-4978-99c0-120e422d9a70
2024-08-26 21:26:04,747 - DEBUG - Requesting: http://10.0.0.68:8082/route-target/0d984a62-d7ee-4f43-b3c6-e26fa04a6481
2024-08-26 21:26:04,754 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 21:26:04,754 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,763 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/f9d32d04-1c27-4978-99c0-120e422d9a70
2024-08-26 21:26:04,776 - INFO - Verified VN network id 7 for VN 50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,777 - INFO - Verifications in API Server for VN ctest-vn-18909350 passed
2024-08-26 21:26:04,777 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,784 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/f9d32d04-1c27-4978-99c0-120e422d9a70
2024-08-26 21:26:04,791 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/f9d32d04-1c27-4978-99c0-120e422d9a70
2024-08-26 21:26:04,798 - DEBUG - Requesting: http://10.0.0.68:8082/route-target/0d984a62-d7ee-4f43-b3c6-e26fa04a6481
2024-08-26 21:26:04,811 - DEBUG - Control-node 10.0.0.68 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47312299', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5791731967322180951', 'uuid-lslong': '9265028053030312449'}, 'enable': 'true', 'created': '2024-08-26T21:26:00', 'last-modified': '2024-08-26T21:26:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969277'}
2024-08-26 21:26:04,818 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 21:26:04,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18909350 passed
2024-08-26 21:26:04,818 - DEBUG - ====Verifying policy data for ctest-vn-18909350 in API_Server ======
2024-08-26 21:26:04,818 - DEBUG - Requesting: http://10.0.0.68:8082/domains
2024-08-26 21:26:04,824 - DEBUG - Requesting: http://10.0.0.68:8082/domain/a44a4fde-21b8-412c-b7f2-be0ef55b8e5e
2024-08-26 21:26:04,838 - DEBUG - Requesting: http://10.0.0.68:8082/project/365a889e-444d-48f3-93ea-09b3f8595b90
2024-08-26 21:26:04,911 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/50605d89-d283-4d57-8093-fded0ee69a01
2024-08-26 21:26:04,923 - DEBUG - ==>Verifying data for policy with id: 1153fce0-cb74-44f5-991a-315fed17a02d, fqn: ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-policy-allow-all-52417580']
2024-08-26 21:26:04,923 - INFO - VN ctest-vn-18909350 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 21:26:04,923 - DEBUG - Verifying the vn in opserver
2024-08-26 21:26:04,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350 virtual network link through opserver 10.0.0.68
2024-08-26 21:26:04,923 - DEBUG - Requesting: http://10.0.0.68:8081/analytics/uves/virtual-networks
2024-08-26 21:26:05,217 - DEBUG - Requesting: http://10.0.0.68:8081/analytics/uves/virtual-networks
2024-08-26 21:26:05,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350', 'href': 'http://10.0.0.68:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350?flat'}
2024-08-26 21:26:05,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-18909350 is found in opserver
2024-08-26 21:26:05,291 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 21:26:05,297 - DEBUG - VRF ids for VN ctest-vn-18909350: {}
2024-08-26 21:26:05,297 - DEBUG - Requesting: http://10.0.0.68:8082/domains
2024-08-26 21:26:05,303 - DEBUG - Requesting: http://10.0.0.68:8082/domain/a44a4fde-21b8-412c-b7f2-be0ef55b8e5e
2024-08-26 21:26:05,316 - DEBUG - Requesting: http://10.0.0.68:8082/project/365a889e-444d-48f3-93ea-09b3f8595b90
2024-08-26 21:26:05,384 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,394 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,402 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/9786cf03-a793-418a-907c-00d49d753f8f
2024-08-26 21:26:05,411 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/9786cf03-a793-418a-907c-00d49d753f8f
2024-08-26 21:26:05,418 - DEBUG - Requesting: http://10.0.0.68:8082/route-target/94c4f3b3-dead-4fc1-a4e3-270e8080cbba
2024-08-26 21:26:05,425 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 21:26:05,425 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,433 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/9786cf03-a793-418a-907c-00d49d753f8f
2024-08-26 21:26:05,444 - INFO - Verified VN network id 8 for VN d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,445 - INFO - Verifications in API Server for VN ctest-vn-27872186 passed
2024-08-26 21:26:05,445 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,453 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/9786cf03-a793-418a-907c-00d49d753f8f
2024-08-26 21:26:05,459 - DEBUG - Requesting: http://10.0.0.68:8082/routing-instance/9786cf03-a793-418a-907c-00d49d753f8f
2024-08-26 21:26:05,466 - DEBUG - Requesting: http://10.0.0.68:8082/route-target/94c4f3b3-dead-4fc1-a4e3-270e8080cbba
2024-08-26 21:26:05,478 - DEBUG - Control-node 10.0.0.68 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-27872186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47312299', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15238756976710077779', 'uuid-lslong': '12600836707488537262'}, 'enable': 'true', 'created': '2024-08-26T21:26:00', 'last-modified': '2024-08-26T21:26:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394947'}
2024-08-26 21:26:05,484 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 21:26:05,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27872186 passed
2024-08-26 21:26:05,484 - DEBUG - ====Verifying policy data for ctest-vn-27872186 in API_Server ======
2024-08-26 21:26:05,484 - DEBUG - Requesting: http://10.0.0.68:8082/domains
2024-08-26 21:26:05,491 - DEBUG - Requesting: http://10.0.0.68:8082/domain/a44a4fde-21b8-412c-b7f2-be0ef55b8e5e
2024-08-26 21:26:05,503 - DEBUG - Requesting: http://10.0.0.68:8082/project/365a889e-444d-48f3-93ea-09b3f8595b90
2024-08-26 21:26:05,574 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-network/d37af0bb-5f4f-4d53-aedf-2a392e8e9aae
2024-08-26 21:26:05,583 - DEBUG - ==>Verifying data for policy with id: 1153fce0-cb74-44f5-991a-315fed17a02d, fqn: ['default-domain', 'ctest-TestBasicPolicy-47312299', 'ctest-policy-allow-all-52417580']
2024-08-26 21:26:05,584 - INFO - VN ctest-vn-27872186 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 21:26:05,584 - DEBUG - Verifying the vn in opserver
2024-08-26 21:26:05,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-27872186 virtual network link through opserver 10.0.0.68
2024-08-26 21:26:05,584 - DEBUG - Requesting: http://10.0.0.68:8081/analytics/uves/virtual-networks
2024-08-26 21:26:05,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-27872186', 'href': 'http://10.0.0.68:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-27872186?flat'}
2024-08-26 21:26:05,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47312299:ctest-vn-27872186 is found in opserver
2024-08-26 21:26:05,608 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 21:26:05,614 - DEBUG - VRF ids for VN ctest-vn-27872186: {}
2024-08-26 21:26:05,668 - DEBUG - Services list from nova: [