2024-09-05 02:32:17,241 - INFO - Domain Default found not creating
2024-09-05 02:32:17,388 - INFO - Project ctest-TestBasicPolicy-40881346 not found, creating it
2024-09-05 02:32:17,837 - INFO - Created Project:ctest-TestBasicPolicy-40881346, ID : c2007eab-33d1-4d27-9f6c-872fb368d59d
2024-09-05 02:32:19,284 - INFO - ================================================================================
2024-09-05 02:32:19,284 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-05 02:32:19,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-09-05 02:32:19,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.5': '0'}} with
2024-09-05 02:32:19,551 - INFO - Initial checks done. Running the testcase now
2024-09-05 02:32:19,551 - INFO -
2024-09-05 02:32:20,105 - DEBUG - Response for create_network : {'network': {'id': 'f776a829-3498-4ee8-93e0-2ffb1e93d4a3', 'name': 'ctest-vn-62517611', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'project_id': 'c2007eab33d14d279f6c872fb368d59d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-vn-62517611'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 02:32:20,322 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3a13428-3646-4d11-aeb4-51117fb314fd', 'name': '', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'network_id': 'f776a829-3498-4ee8-93e0-2ffb1e93d4a3', 'ip_version': 4, 'cidr': '124.129.239.128/26', 'allocation_pools': [{'start': '124.129.239.130', 'end': '124.129.239.190'}], 'gateway_ip': '124.129.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.129.239.130', 'tags': [], 'project_id': 'c2007eab33d14d279f6c872fb368d59d'}}
2024-09-05 02:32:20,341 - INFO - Created VN ctest-vn-62517611
2024-09-05 02:32:20,391 - DEBUG - VN ctest-vn-62517611 UUID is f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:20,694 - DEBUG - Response for create_network : {'network': {'id': '69650257-2adf-4627-98c1-1514900ff5ab', 'name': 'ctest-vn-81683072', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'project_id': 'c2007eab33d14d279f6c872fb368d59d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-vn-81683072'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 02:32:20,896 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1d51bd4-e7fb-42e1-89fe-e69797c6b548', 'name': '', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'network_id': '69650257-2adf-4627-98c1-1514900ff5ab', 'ip_version': 4, 'cidr': '110.68.7.192/26', 'allocation_pools': [{'start': '110.68.7.194', 'end': '110.68.7.254'}], 'gateway_ip': '110.68.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.68.7.194', 'tags': [], 'project_id': 'c2007eab33d14d279f6c872fb368d59d'}}
2024-09-05 02:32:20,914 - INFO - Created VN ctest-vn-81683072
2024-09-05 02:32:20,963 - DEBUG - VN ctest-vn-81683072 UUID is 69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:21,070 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611, 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-40881346:ctest-vn-81683072, 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-09-05 02:32:21,352 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f776a829-3498-4ee8-93e0-2ffb1e93d4a3', 'name': 'ctest-vn-62517611', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'project_id': 'c2007eab33d14d279f6c872fb368d59d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3a13428-3646-4d11-aeb4-51117fb314fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-vn-62517611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-policy-allow-all-44988376']], 'subnet_ipam': [{'subnet_cidr': '124.129.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 02:32:21,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69650257-2adf-4627-98c1-1514900ff5ab', 'name': 'ctest-vn-81683072', 'tenant_id': 'c2007eab33d14d279f6c872fb368d59d', 'project_id': 'c2007eab33d14d279f6c872fb368d59d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1d51bd4-e7fb-42e1-89fe-e69797c6b548'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-vn-81683072'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-policy-allow-all-44988376']], 'subnet_ipam': [{'subnet_cidr': '110.68.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 02:32:21,755 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-05 02:32:22,053 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-05 02:32:22,084 - DEBUG - Requesting: http://10.0.0.32:8082/domain/74dea40d-eb15-44dd-8947-fbbd2f2d6cc0
2024-09-05 02:32:22,098 - DEBUG - Requesting: http://10.0.0.32:8082/project/c2007eab-33d1-4d27-9f6c-872fb368d59d
2024-09-05 02:32:22,167 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,176 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,184 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/124700b8-67d5-4f62-b831-2540963c087e
2024-09-05 02:32:22,191 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/124700b8-67d5-4f62-b831-2540963c087e
2024-09-05 02:32:22,197 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9f3b3c47-efec-43b3-a2cd-bc1217db9aae
2024-09-05 02:32:22,204 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 02:32:22,204 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,211 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/124700b8-67d5-4f62-b831-2540963c087e
2024-09-05 02:32:22,223 - INFO - Verified VN network id 8 for VN f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,223 - INFO - Verifications in API Server for VN ctest-vn-62517611 passed
2024-09-05 02:32:22,223 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,231 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/124700b8-67d5-4f62-b831-2540963c087e
2024-09-05 02:32:22,237 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/124700b8-67d5-4f62-b831-2540963c087e
2024-09-05 02:32:22,243 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9f3b3c47-efec-43b3-a2cd-bc1217db9aae
2024-09-05 02:32:22,255 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40881346', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17831624669549580008', 'uuid-lslong': '10655569473954895011'}, 'enable': 'true', 'created': '2024-09-05T02:32:20', 'last-modified': '2024-09-05T02:32:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925769'}
2024-09-05 02:32:22,261 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 02:32:22,261 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62517611 passed
2024-09-05 02:32:22,262 - DEBUG - ====Verifying policy data for ctest-vn-62517611 in API_Server ======
2024-09-05 02:32:22,262 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-05 02:32:22,267 - DEBUG - Requesting: http://10.0.0.32:8082/domain/74dea40d-eb15-44dd-8947-fbbd2f2d6cc0
2024-09-05 02:32:22,279 - DEBUG - Requesting: http://10.0.0.32:8082/project/c2007eab-33d1-4d27-9f6c-872fb368d59d
2024-09-05 02:32:22,347 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f776a829-3498-4ee8-93e0-2ffb1e93d4a3
2024-09-05 02:32:22,354 - DEBUG - ==>Verifying data for policy with id: 75fd833d-d4f6-4d0c-9343-632bf8ab2d6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-policy-allow-all-44988376']
2024-09-05 02:32:22,354 - INFO - VN ctest-vn-62517611 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 02:32:22,355 - DEBUG - Verifying the vn in opserver
2024-09-05 02:32:22,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611 virtual network link through opserver 10.0.0.32
2024-09-05 02:32:22,355 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-05 02:32:22,646 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-05 02:32:22,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611?flat'}
2024-09-05 02:32:22,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-62517611 is found in opserver
2024-09-05 02:32:22,712 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 02:32:22,717 - DEBUG - VRF ids for VN ctest-vn-62517611: {}
2024-09-05 02:32:22,717 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-05 02:32:22,723 - DEBUG - Requesting: http://10.0.0.32:8082/domain/74dea40d-eb15-44dd-8947-fbbd2f2d6cc0
2024-09-05 02:32:22,733 - DEBUG - Requesting: http://10.0.0.32:8082/project/c2007eab-33d1-4d27-9f6c-872fb368d59d
2024-09-05 02:32:22,803 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,813 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,821 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/19cbde65-9cb9-4492-8cb8-1cc8126067d6
2024-09-05 02:32:22,827 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/19cbde65-9cb9-4492-8cb8-1cc8126067d6
2024-09-05 02:32:22,834 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/510d7d65-760f-42f3-a622-97f21afebb52
2024-09-05 02:32:22,840 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 02:32:22,840 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,847 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/19cbde65-9cb9-4492-8cb8-1cc8126067d6
2024-09-05 02:32:22,858 - INFO - Verified VN network id 9 for VN 69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,858 - INFO - Verifications in API Server for VN ctest-vn-81683072 passed
2024-09-05 02:32:22,858 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,865 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/19cbde65-9cb9-4492-8cb8-1cc8126067d6
2024-09-05 02:32:22,871 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/19cbde65-9cb9-4492-8cb8-1cc8126067d6
2024-09-05 02:32:22,877 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/510d7d65-760f-42f3-a622-97f21afebb52
2024-09-05 02:32:22,889 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-81683072', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40881346', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7594478920034895399', 'uuid-lslong': '11007102142330697131'}, 'enable': 'true', 'created': '2024-09-05T02:32:20', 'last-modified': '2024-09-05T02:32:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.319571'}
2024-09-05 02:32:22,895 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 02:32:22,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81683072 passed
2024-09-05 02:32:22,896 - DEBUG - ====Verifying policy data for ctest-vn-81683072 in API_Server ======
2024-09-05 02:32:22,896 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-05 02:32:22,901 - DEBUG - Requesting: http://10.0.0.32:8082/domain/74dea40d-eb15-44dd-8947-fbbd2f2d6cc0
2024-09-05 02:32:22,913 - DEBUG - Requesting: http://10.0.0.32:8082/project/c2007eab-33d1-4d27-9f6c-872fb368d59d
2024-09-05 02:32:22,983 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/69650257-2adf-4627-98c1-1514900ff5ab
2024-09-05 02:32:22,991 - DEBUG - ==>Verifying data for policy with id: 75fd833d-d4f6-4d0c-9343-632bf8ab2d6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40881346', 'ctest-policy-allow-all-44988376']
2024-09-05 02:32:22,991 - INFO - VN ctest-vn-81683072 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 02:32:22,991 - DEBUG - Verifying the vn in opserver
2024-09-05 02:32:22,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-81683072 virtual network link through opserver 10.0.0.32
2024-09-05 02:32:22,992 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-05 02:32:23,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-81683072', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-81683072?flat'}
2024-09-05 02:32:23,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40881346:ctest-vn-81683072 is found in opserver
2024-09-05 02:32:23,013 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 02:32:23,019 - DEBUG - VRF ids for VN ctest-vn-81683072: {}
2024-09-05 02:32:23,070 - DEBUG - Services list from nova: [