2025-03-27 16:21:03,502 - INFO - Domain Default found not creating
2025-03-27 16:21:03,674 - INFO - Project ctest-TestBasicPolicy-78370575 not found, creating it
2025-03-27 16:21:04,185 - INFO - Created Project:ctest-TestBasicPolicy-78370575, ID : b55f4c5f-9df4-4996-b0a3-32cd1c7f7508
2025-03-27 16:21:06,026 - INFO - ================================================================================
2025-03-27 16:21:06,026 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 16:21:06,026 - 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-27 16:21:06,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.13': '0'}} with
2025-03-27 16:21:06,293 - INFO - Initial checks done. Running the testcase now
2025-03-27 16:21:06,293 - INFO -
2025-03-27 16:21:06,903 - DEBUG - Response for create_network : {'network': {'id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'name': 'ctest-vn-80509894', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-80509894'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:21:07,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd873057f-8d66-43f4-aeca-ecaca0c478a0', 'name': '', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'network_id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'ip_version': 4, 'cidr': '208.18.255.0/26', 'allocation_pools': [{'start': '208.18.255.2', 'end': '208.18.255.62'}], 'gateway_ip': '208.18.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.18.255.2', 'tags': [], 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508'}}
2025-03-27 16:21:07,092 - INFO - Created VN ctest-vn-80509894
2025-03-27 16:21:07,149 - DEBUG - VN ctest-vn-80509894 UUID is a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:07,497 - DEBUG - Response for create_network : {'network': {'id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'name': 'ctest-vn-41704285', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-41704285'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:21:07,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a466623-924c-4b82-83f5-83047a7da51f', 'name': '', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'network_id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'ip_version': 4, 'cidr': '198.213.232.64/26', 'allocation_pools': [{'start': '198.213.232.66', 'end': '198.213.232.126'}], 'gateway_ip': '198.213.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.213.232.66', 'tags': [], 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508'}}
2025-03-27 16:21:07,731 - INFO - Created VN ctest-vn-41704285
2025-03-27 16:21:07,793 - DEBUG - VN ctest-vn-41704285 UUID is cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:07,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894, 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-78370575:ctest-vn-41704285, 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-27 16:21:08,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'name': 'ctest-vn-80509894', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d873057f-8d66-43f4-aeca-ecaca0c478a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-80509894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']], 'subnet_ipam': [{'subnet_cidr': '208.18.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:21:08,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'name': 'ctest-vn-41704285', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a466623-924c-4b82-83f5-83047a7da51f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-41704285'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']], 'subnet_ipam': [{'subnet_cidr': '198.213.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:21:08,657 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-03-27 16:21:09,014 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-03-27 16:21:09,050 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4
2025-03-27 16:21:09,064 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508
2025-03-27 16:21:09,150 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,165 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,178 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438
2025-03-27 16:21:09,187 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438
2025-03-27 16:21:09,197 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/d92bfe1b-42c4-4a79-b756-70053cba4b81
2025-03-27 16:21:09,206 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:21:09,206 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,218 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438
2025-03-27 16:21:09,235 - INFO - Verified VN network id 9 for VN a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,235 - INFO - Verifications in API Server for VN ctest-vn-80509894 passed
2025-03-27 16:21:09,235 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,248 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438
2025-03-27 16:21:09,258 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438
2025-03-27 16:21:09,268 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/d92bfe1b-42c4-4a79-b756-70053cba4b81
2025-03-27 16:21:09,289 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78370575', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12244679195915797824', 'uuid-lslong': '11528006248970778697'}, 'enable': 'true', 'created': '2025-03-27T16:21:06', 'last-modified': '2025-03-27T16:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073666'}
2025-03-27 16:21:09,298 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:21:09,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80509894 passed
2025-03-27 16:21:09,298 - DEBUG - ====Verifying policy data for ctest-vn-80509894 in API_Server ======
2025-03-27 16:21:09,298 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-03-27 16:21:09,305 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4
2025-03-27 16:21:09,323 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508
2025-03-27 16:21:09,409 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849
2025-03-27 16:21:09,423 - DEBUG - ==>Verifying data for policy with id: 9a095914-2e96-48a2-86b8-c36c33b481f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']
2025-03-27 16:21:09,423 - INFO - VN ctest-vn-80509894 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:21:09,423 - DEBUG - Verifying the vn in opserver
2025-03-27 16:21:09,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894 virtual network link through opserver 10.0.0.54
2025-03-27 16:21:09,423 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-03-27 16:21:09,759 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-03-27 16:21:09,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894?flat'}
2025-03-27 16:21:09,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894 is found in opserver
2025-03-27 16:21:09,839 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:21:09,845 - DEBUG - VRF ids for VN ctest-vn-80509894: {}
2025-03-27 16:21:09,845 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-03-27 16:21:09,852 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4
2025-03-27 16:21:09,868 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508
2025-03-27 16:21:09,953 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:09,970 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:09,984 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983
2025-03-27 16:21:09,993 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983
2025-03-27 16:21:10,003 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/130548f5-e6ef-4d71-97a1-e1acb420ef5e
2025-03-27 16:21:10,014 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:21:10,014 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:10,030 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983
2025-03-27 16:21:10,056 - INFO - Verified VN network id 10 for VN cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:10,056 - INFO - Verifications in API Server for VN ctest-vn-41704285 passed
2025-03-27 16:21:10,056 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:10,076 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983
2025-03-27 16:21:10,088 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983
2025-03-27 16:21:10,102 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/130548f5-e6ef-4d71-97a1-e1acb420ef5e
2025-03-27 16:21:10,123 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78370575', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14689285951584947734', 'uuid-lslong': '9357532735561883851'}, 'enable': 'true', 'created': '2025-03-27T16:21:07', 'last-modified': '2025-03-27T16:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.645439'}
2025-03-27 16:21:10,133 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:21:10,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41704285 passed
2025-03-27 16:21:10,133 - DEBUG - ====Verifying policy data for ctest-vn-41704285 in API_Server ======
2025-03-27 16:21:10,133 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-03-27 16:21:10,142 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4
2025-03-27 16:21:10,158 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508
2025-03-27 16:21:10,243 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb
2025-03-27 16:21:10,256 - DEBUG - ==>Verifying data for policy with id: 9a095914-2e96-48a2-86b8-c36c33b481f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']
2025-03-27 16:21:10,256 - INFO - VN ctest-vn-41704285 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:21:10,256 - DEBUG - Verifying the vn in opserver
2025-03-27 16:21:10,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285 virtual network link through opserver 10.0.0.54
2025-03-27 16:21:10,256 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-03-27 16:21:10,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285?flat'}
2025-03-27 16:21:10,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285 is found in opserver
2025-03-27 16:21:10,284 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:21:10,294 - DEBUG - VRF ids for VN ctest-vn-41704285: {}
2025-03-27 16:21:10,361 - DEBUG - Services list from nova: [