2024-08-26 20:21:20,194 - INFO - Domain Default found not creating
2024-08-26 20:21:20,350 - INFO - Project ctest-TestBasicPolicy-24079625 not found, creating it
2024-08-26 20:21:20,815 - INFO - Created Project:ctest-TestBasicPolicy-24079625, ID : b05263b4-e12a-43ce-b1d8-6bb0e01dcfe0
2024-08-26 20:21:22,293 - INFO - ================================================================================
2024-08-26 20:21:22,293 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 20:21:22,293 - 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 20:21:22,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.7': '0'}} with
2024-08-26 20:21:22,554 - INFO - Initial checks done. Running the testcase now
2024-08-26 20:21:22,554 - INFO -
2024-08-26 20:21:23,101 - DEBUG - Response for create_network : {'network': {'id': 'fc2024c5-339b-4545-bf52-092bd079f657', 'name': 'ctest-vn-89285425', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-vn-89285425'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 20:21:23,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '149e0a0c-31b9-4f60-a0d2-8585f6dac5f6', 'name': '', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'network_id': 'fc2024c5-339b-4545-bf52-092bd079f657', 'ip_version': 4, 'cidr': '209.106.68.192/26', 'allocation_pools': [{'start': '209.106.68.194', 'end': '209.106.68.254'}], 'gateway_ip': '209.106.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.106.68.194', 'tags': [], 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0'}}
2024-08-26 20:21:23,384 - INFO - Created VN ctest-vn-89285425
2024-08-26 20:21:23,436 - DEBUG - VN ctest-vn-89285425 UUID is fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:23,737 - DEBUG - Response for create_network : {'network': {'id': 'f31a2003-1789-470d-85f0-5adcc56eeb6d', 'name': 'ctest-vn-60493360', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-vn-60493360'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 20:21:23,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '92960470-db72-4e59-8a28-298e668c6f26', 'name': '', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'network_id': 'f31a2003-1789-470d-85f0-5adcc56eeb6d', 'ip_version': 4, 'cidr': '50.93.82.128/26', 'allocation_pools': [{'start': '50.93.82.130', 'end': '50.93.82.190'}], 'gateway_ip': '50.93.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.93.82.130', 'tags': [], 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0'}}
2024-08-26 20:21:23,914 - INFO - Created VN ctest-vn-60493360
2024-08-26 20:21:23,964 - DEBUG - VN ctest-vn-60493360 UUID is f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:24,074 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425, 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-24079625:ctest-vn-60493360, 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 20:21:24,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc2024c5-339b-4545-bf52-092bd079f657', 'name': 'ctest-vn-89285425', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['149e0a0c-31b9-4f60-a0d2-8585f6dac5f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-vn-89285425'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-policy-allow-all-22048587']], 'subnet_ipam': [{'subnet_cidr': '209.106.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 20:21:24,638 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f31a2003-1789-470d-85f0-5adcc56eeb6d', 'name': 'ctest-vn-60493360', 'tenant_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'project_id': 'b05263b4e12a43ceb1d86bb0e01dcfe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92960470-db72-4e59-8a28-298e668c6f26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-vn-60493360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-policy-allow-all-22048587']], 'subnet_ipam': [{'subnet_cidr': '50.93.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 20:21:24,760 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-26 20:21:25,069 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-26 20:21:25,133 - DEBUG - Requesting: http://10.0.0.44:8082/domain/679f2d81-2d17-4976-ac93-54b5dc512e18
2024-08-26 20:21:25,166 - DEBUG - Requesting: http://10.0.0.44:8082/project/b05263b4-e12a-43ce-b1d8-6bb0e01dcfe0
2024-08-26 20:21:25,272 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,285 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,293 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/1df5a628-b6f9-4cc7-a09d-23379e88bf19
2024-08-26 20:21:25,299 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/1df5a628-b6f9-4cc7-a09d-23379e88bf19
2024-08-26 20:21:25,305 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/ee81bfc1-8c7c-4932-90a7-696dc92252ab
2024-08-26 20:21:25,313 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 20:21:25,314 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,325 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/1df5a628-b6f9-4cc7-a09d-23379e88bf19
2024-08-26 20:21:25,345 - INFO - Verified VN network id 9 for VN fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,345 - INFO - Verifications in API Server for VN ctest-vn-89285425 passed
2024-08-26 20:21:25,345 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,375 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/1df5a628-b6f9-4cc7-a09d-23379e88bf19
2024-08-26 20:21:25,382 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/1df5a628-b6f9-4cc7-a09d-23379e88bf19
2024-08-26 20:21:25,396 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/ee81bfc1-8c7c-4932-90a7-696dc92252ab
2024-08-26 20:21:25,413 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24079625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18167561326205551941', 'uuid-lslong': '13786091493120407127'}, 'enable': 'true', 'created': '2024-08-26T20:21:23', 'last-modified': '2024-08-26T20:21:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071923'}
2024-08-26 20:21:25,421 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 20:21:25,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89285425 passed
2024-08-26 20:21:25,421 - DEBUG - ====Verifying policy data for ctest-vn-89285425 in API_Server ======
2024-08-26 20:21:25,421 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-26 20:21:25,443 - DEBUG - Requesting: http://10.0.0.44:8082/domain/679f2d81-2d17-4976-ac93-54b5dc512e18
2024-08-26 20:21:25,506 - DEBUG - Requesting: http://10.0.0.44:8082/project/b05263b4-e12a-43ce-b1d8-6bb0e01dcfe0
2024-08-26 20:21:25,607 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fc2024c5-339b-4545-bf52-092bd079f657
2024-08-26 20:21:25,621 - DEBUG - ==>Verifying data for policy with id: 7063d092-d80d-4d1b-a674-d694351142af, fqn: ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-policy-allow-all-22048587']
2024-08-26 20:21:25,621 - INFO - VN ctest-vn-89285425 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 20:21:25,621 - DEBUG - Verifying the vn in opserver
2024-08-26 20:21:25,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425 virtual network link through opserver 10.0.0.44
2024-08-26 20:21:25,621 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-26 20:21:25,931 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-26 20:21:25,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425?flat'}
2024-08-26 20:21:25,987 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-89285425 is found in opserver
2024-08-26 20:21:25,998 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 20:21:26,002 - DEBUG - VRF ids for VN ctest-vn-89285425: {}
2024-08-26 20:21:26,002 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-26 20:21:26,008 - DEBUG - Requesting: http://10.0.0.44:8082/domain/679f2d81-2d17-4976-ac93-54b5dc512e18
2024-08-26 20:21:26,020 - DEBUG - Requesting: http://10.0.0.44:8082/project/b05263b4-e12a-43ce-b1d8-6bb0e01dcfe0
2024-08-26 20:21:26,093 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,103 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,110 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c9a33bf0-16d2-4ea9-bce5-b0588a71604e
2024-08-26 20:21:26,116 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c9a33bf0-16d2-4ea9-bce5-b0588a71604e
2024-08-26 20:21:26,122 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/854471eb-28c1-4aad-86fd-7daacb24adb8
2024-08-26 20:21:26,127 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 20:21:26,128 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,134 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c9a33bf0-16d2-4ea9-bce5-b0588a71604e
2024-08-26 20:21:26,145 - INFO - Verified VN network id 10 for VN f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,145 - INFO - Verifications in API Server for VN ctest-vn-60493360 passed
2024-08-26 20:21:26,146 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,153 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c9a33bf0-16d2-4ea9-bce5-b0588a71604e
2024-08-26 20:21:26,159 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c9a33bf0-16d2-4ea9-bce5-b0588a71604e
2024-08-26 20:21:26,165 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/854471eb-28c1-4aad-86fd-7daacb24adb8
2024-08-26 20:21:26,177 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-60493360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24079625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17517348898262828813', 'uuid-lslong': '9651313905706658669'}, 'enable': 'true', 'created': '2024-08-26T20:21:23', 'last-modified': '2024-08-26T20:21:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602727'}
2024-08-26 20:21:26,183 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 20:21:26,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60493360 passed
2024-08-26 20:21:26,184 - DEBUG - ====Verifying policy data for ctest-vn-60493360 in API_Server ======
2024-08-26 20:21:26,184 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-26 20:21:26,189 - DEBUG - Requesting: http://10.0.0.44:8082/domain/679f2d81-2d17-4976-ac93-54b5dc512e18
2024-08-26 20:21:26,199 - DEBUG - Requesting: http://10.0.0.44:8082/project/b05263b4-e12a-43ce-b1d8-6bb0e01dcfe0
2024-08-26 20:21:26,266 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/f31a2003-1789-470d-85f0-5adcc56eeb6d
2024-08-26 20:21:26,273 - DEBUG - ==>Verifying data for policy with id: 7063d092-d80d-4d1b-a674-d694351142af, fqn: ['default-domain', 'ctest-TestBasicPolicy-24079625', 'ctest-policy-allow-all-22048587']
2024-08-26 20:21:26,274 - INFO - VN ctest-vn-60493360 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 20:21:26,274 - DEBUG - Verifying the vn in opserver
2024-08-26 20:21:26,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-60493360 virtual network link through opserver 10.0.0.44
2024-08-26 20:21:26,274 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-26 20:21:26,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-60493360', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-60493360?flat'}
2024-08-26 20:21:26,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24079625:ctest-vn-60493360 is found in opserver
2024-08-26 20:21:26,293 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 20:21:26,298 - DEBUG - VRF ids for VN ctest-vn-60493360: {}
2024-08-26 20:21:26,357 - DEBUG - Services list from nova: [