2024-08-26 19:21:30,878 - INFO - Domain Default found not creating
2024-08-26 19:21:31,303 - INFO - Project ctest-TestBasicPolicy-15564599 not found, creating it
2024-08-26 19:21:31,992 - INFO - Created Project:ctest-TestBasicPolicy-15564599, ID : b87347a9-41b7-42f4-86a7-20c7ce77726b
2024-08-26 19:21:34,074 - INFO - ================================================================================
2024-08-26 19:21:34,075 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 19:21:34,075 - 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 19:21:34,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.24': '0'}} with
2024-08-26 19:21:34,437 - INFO - Initial checks done. Running the testcase now
2024-08-26 19:21:34,437 - INFO -
2024-08-26 19:21:35,194 - DEBUG - Response for create_network : {'network': {'id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'name': 'ctest-vn-71518791', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-71518791'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 19:21:35,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c334d2b1-d684-4f3c-9c0e-257eaaa85c43', 'name': '', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'network_id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'ip_version': 4, 'cidr': '171.206.191.64/26', 'allocation_pools': [{'start': '171.206.191.66', 'end': '171.206.191.126'}], 'gateway_ip': '171.206.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.206.191.66', 'tags': [], 'project_id': 'b87347a941b742f486a720c7ce77726b'}}
2024-08-26 19:21:35,509 - INFO - Created VN ctest-vn-71518791
2024-08-26 19:21:35,573 - DEBUG - VN ctest-vn-71518791 UUID is db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:36,072 - DEBUG - Response for create_network : {'network': {'id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'name': 'ctest-vn-55130090', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-55130090'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 19:21:36,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d721a8-4909-4470-abc1-fb44e44a90c6', 'name': '', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'network_id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'ip_version': 4, 'cidr': '169.250.247.64/26', 'allocation_pools': [{'start': '169.250.247.66', 'end': '169.250.247.126'}], 'gateway_ip': '169.250.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.250.247.66', 'tags': [], 'project_id': 'b87347a941b742f486a720c7ce77726b'}}
2024-08-26 19:21:36,386 - INFO - Created VN ctest-vn-55130090
2024-08-26 19:21:36,464 - DEBUG - VN ctest-vn-55130090 UUID is b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:36,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791, 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-15564599:ctest-vn-55130090, 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 19:21:37,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'name': 'ctest-vn-71518791', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c334d2b1-d684-4f3c-9c0e-257eaaa85c43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-71518791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']], 'subnet_ipam': [{'subnet_cidr': '171.206.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 19:21:37,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'name': 'ctest-vn-55130090', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47d721a8-4909-4470-abc1-fb44e44a90c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-55130090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']], 'subnet_ipam': [{'subnet_cidr': '169.250.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 19:21:37,461 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 19:21:37,798 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 19:21:37,854 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d
2024-08-26 19:21:37,883 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b
2024-08-26 19:21:37,990 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,022 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,047 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086
2024-08-26 19:21:38,071 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086
2024-08-26 19:21:38,090 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/797c37af-4e33-4486-96c2-458cd0a9dd09
2024-08-26 19:21:38,104 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 19:21:38,104 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,119 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086
2024-08-26 19:21:38,142 - INFO - Verified VN network id 8 for VN db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,142 - INFO - Verifications in API Server for VN ctest-vn-71518791 passed
2024-08-26 19:21:38,142 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,153 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086
2024-08-26 19:21:38,165 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086
2024-08-26 19:21:38,181 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/797c37af-4e33-4486-96c2-458cd0a9dd09
2024-08-26 19:21:38,218 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15564599', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15797360029165175502', 'uuid-lslong': '11180594723415941769'}, 'enable': 'true', 'created': '2024-08-26T19:21:35', 'last-modified': '2024-08-26T19:21:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.233692'}
2024-08-26 19:21:38,241 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 19:21:38,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71518791 passed
2024-08-26 19:21:38,242 - DEBUG - ====Verifying policy data for ctest-vn-71518791 in API_Server ======
2024-08-26 19:21:38,242 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 19:21:38,260 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d
2024-08-26 19:21:38,291 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b
2024-08-26 19:21:38,399 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289
2024-08-26 19:21:38,426 - DEBUG - ==>Verifying data for policy with id: e1c1e2e9-5eba-45ac-bf52-5a809fdac52a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']
2024-08-26 19:21:38,426 - INFO - VN ctest-vn-71518791 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 19:21:38,427 - DEBUG - Verifying the vn in opserver
2024-08-26 19:21:38,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791 virtual network link through opserver 10.0.0.30
2024-08-26 19:21:38,428 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 19:21:38,742 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 19:21:38,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791?flat'}
2024-08-26 19:21:38,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791 is found in opserver
2024-08-26 19:21:38,866 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 19:21:38,880 - DEBUG - VRF ids for VN ctest-vn-71518791: {}
2024-08-26 19:21:38,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 19:21:38,892 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d
2024-08-26 19:21:38,927 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b
2024-08-26 19:21:39,057 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,082 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,105 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32
2024-08-26 19:21:39,123 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32
2024-08-26 19:21:39,135 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/a5df701f-ef76-48a7-a285-901c184fd135
2024-08-26 19:21:39,147 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 19:21:39,147 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,164 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32
2024-08-26 19:21:39,203 - INFO - Verified VN network id 9 for VN b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,203 - INFO - Verifications in API Server for VN ctest-vn-55130090 passed
2024-08-26 19:21:39,203 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,225 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32
2024-08-26 19:21:39,239 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32
2024-08-26 19:21:39,257 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/a5df701f-ef76-48a7-a285-901c184fd135
2024-08-26 19:21:39,287 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15564599', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13221278820955734411', 'uuid-lslong': '11299110891200661360'}, 'enable': 'true', 'created': '2024-08-26T19:21:36', 'last-modified': '2024-08-26T19:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.046344'}
2024-08-26 19:21:39,308 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 19:21:39,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55130090 passed
2024-08-26 19:21:39,308 - DEBUG - ====Verifying policy data for ctest-vn-55130090 in API_Server ======
2024-08-26 19:21:39,308 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 19:21:39,324 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d
2024-08-26 19:21:39,361 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b
2024-08-26 19:21:39,480 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770
2024-08-26 19:21:39,504 - DEBUG - ==>Verifying data for policy with id: e1c1e2e9-5eba-45ac-bf52-5a809fdac52a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']
2024-08-26 19:21:39,505 - INFO - VN ctest-vn-55130090 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 19:21:39,505 - DEBUG - Verifying the vn in opserver
2024-08-26 19:21:39,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090 virtual network link through opserver 10.0.0.30
2024-08-26 19:21:39,505 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 19:21:39,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090?flat'}
2024-08-26 19:21:39,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090 is found in opserver
2024-08-26 19:21:39,568 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 19:21:39,587 - DEBUG - VRF ids for VN ctest-vn-55130090: {}
2024-08-26 19:21:39,715 - DEBUG - Services list from nova: [