2025-01-15 12:26:33,749 - INFO - Domain Default found not creating
2025-01-15 12:26:33,919 - INFO - Project ctest-TestBasicPolicy-89337344 not found, creating it
2025-01-15 12:26:34,378 - INFO - Created Project:ctest-TestBasicPolicy-89337344, ID : 5e641b02-5e75-4c97-ab94-514ed0d41ac2
2025-01-15 12:26:35,940 - INFO - ================================================================================
2025-01-15 12:26:35,941 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 12:26:35,941 - 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-01-15 12:26:36,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.5': '0'}} with
2025-01-15 12:26:36,198 - INFO - Initial checks done. Running the testcase now
2025-01-15 12:26:36,198 - INFO -
2025-01-15 12:26:36,780 - DEBUG - Response for create_network : {'network': {'id': 'fd849ec6-6c92-4230-9c28-2fe7c1320966', 'name': 'ctest-vn-90481881', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'project_id': '5e641b025e754c97ab94514ed0d41ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-vn-90481881'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 12:26:36,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c5e1614-3890-4be1-98d7-4b085b1ad33a', 'name': '', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'network_id': 'fd849ec6-6c92-4230-9c28-2fe7c1320966', 'ip_version': 4, 'cidr': '51.208.154.192/26', 'allocation_pools': [{'start': '51.208.154.194', 'end': '51.208.154.254'}], 'gateway_ip': '51.208.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.208.154.194', 'tags': [], 'project_id': '5e641b025e754c97ab94514ed0d41ac2'}}
2025-01-15 12:26:37,002 - INFO - Created VN ctest-vn-90481881
2025-01-15 12:26:37,055 - DEBUG - VN ctest-vn-90481881 UUID is fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:37,364 - DEBUG - Response for create_network : {'network': {'id': '9a28c247-6da8-4917-a37e-e43545a5205c', 'name': 'ctest-vn-51103151', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'project_id': '5e641b025e754c97ab94514ed0d41ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-vn-51103151'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 12:26:37,539 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcac33a4-5bf9-4a54-9571-c9460b8eb5cc', 'name': '', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'network_id': '9a28c247-6da8-4917-a37e-e43545a5205c', 'ip_version': 4, 'cidr': '24.221.65.192/26', 'allocation_pools': [{'start': '24.221.65.194', 'end': '24.221.65.254'}], 'gateway_ip': '24.221.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.221.65.194', 'tags': [], 'project_id': '5e641b025e754c97ab94514ed0d41ac2'}}
2025-01-15 12:26:37,562 - INFO - Created VN ctest-vn-51103151
2025-01-15 12:26:37,619 - DEBUG - VN ctest-vn-51103151 UUID is 9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:37,740 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881, 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-89337344:ctest-vn-51103151, 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-01-15 12:26:38,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd849ec6-6c92-4230-9c28-2fe7c1320966', 'name': 'ctest-vn-90481881', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'project_id': '5e641b025e754c97ab94514ed0d41ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c5e1614-3890-4be1-98d7-4b085b1ad33a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-vn-90481881'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-policy-allow-all-62387358']], 'subnet_ipam': [{'subnet_cidr': '51.208.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 12:26:38,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a28c247-6da8-4917-a37e-e43545a5205c', 'name': 'ctest-vn-51103151', 'tenant_id': '5e641b025e754c97ab94514ed0d41ac2', 'project_id': '5e641b025e754c97ab94514ed0d41ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcac33a4-5bf9-4a54-9571-c9460b8eb5cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-vn-51103151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-policy-allow-all-62387358']], 'subnet_ipam': [{'subnet_cidr': '24.221.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 12:26:38,448 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-15 12:26:38,754 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-15 12:26:38,791 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7cd7407f-8c06-49c6-aa52-fa0244444a3c
2025-01-15 12:26:38,805 - DEBUG - Requesting: http://10.0.0.37:8082/project/5e641b02-5e75-4c97-ab94-514ed0d41ac2
2025-01-15 12:26:38,884 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:38,898 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:38,909 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/57524cf0-c99c-45bf-b9f2-9480db59c75d
2025-01-15 12:26:38,918 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/57524cf0-c99c-45bf-b9f2-9480db59c75d
2025-01-15 12:26:38,928 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/305a579f-7c30-4bd1-8306-818dfb92d0cb
2025-01-15 12:26:38,937 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 12:26:38,937 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:38,948 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/57524cf0-c99c-45bf-b9f2-9480db59c75d
2025-01-15 12:26:38,964 - INFO - Verified VN network id 8 for VN fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:38,965 - INFO - Verifications in API Server for VN ctest-vn-90481881 passed
2025-01-15 12:26:38,965 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:38,980 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/57524cf0-c99c-45bf-b9f2-9480db59c75d
2025-01-15 12:26:38,990 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/57524cf0-c99c-45bf-b9f2-9480db59c75d
2025-01-15 12:26:38,998 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/305a579f-7c30-4bd1-8306-818dfb92d0cb
2025-01-15 12:26:39,014 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89337344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18267900563583812144', 'uuid-lslong': '11252296341410416998'}, 'enable': 'true', 'created': '2025-01-15T12:26:36', 'last-modified': '2025-01-15T12:26:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981634'}
2025-01-15 12:26:39,023 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 12:26:39,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90481881 passed
2025-01-15 12:26:39,023 - DEBUG - ====Verifying policy data for ctest-vn-90481881 in API_Server ======
2025-01-15 12:26:39,023 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-15 12:26:39,030 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7cd7407f-8c06-49c6-aa52-fa0244444a3c
2025-01-15 12:26:39,044 - DEBUG - Requesting: http://10.0.0.37:8082/project/5e641b02-5e75-4c97-ab94-514ed0d41ac2
2025-01-15 12:26:39,122 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fd849ec6-6c92-4230-9c28-2fe7c1320966
2025-01-15 12:26:39,134 - DEBUG - ==>Verifying data for policy with id: 83b6d6e4-b1ff-4ddb-b514-4f59807074dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-policy-allow-all-62387358']
2025-01-15 12:26:39,135 - INFO - VN ctest-vn-90481881 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 12:26:39,135 - DEBUG - Verifying the vn in opserver
2025-01-15 12:26:39,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881 virtual network link through opserver 10.0.0.37
2025-01-15 12:26:39,135 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-15 12:26:39,435 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-15 12:26:39,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881?flat'}
2025-01-15 12:26:39,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-90481881 is found in opserver
2025-01-15 12:26:39,515 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 12:26:39,521 - DEBUG - VRF ids for VN ctest-vn-90481881: {}
2025-01-15 12:26:39,521 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-15 12:26:39,528 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7cd7407f-8c06-49c6-aa52-fa0244444a3c
2025-01-15 12:26:39,545 - DEBUG - Requesting: http://10.0.0.37:8082/project/5e641b02-5e75-4c97-ab94-514ed0d41ac2
2025-01-15 12:26:39,623 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,641 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,652 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/ede359d7-9aff-48f6-9d49-1547b014a9c9
2025-01-15 12:26:39,661 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/ede359d7-9aff-48f6-9d49-1547b014a9c9
2025-01-15 12:26:39,670 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/f664b884-4691-44ba-9269-74aa2a7305d8
2025-01-15 12:26:39,677 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 12:26:39,678 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,693 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/ede359d7-9aff-48f6-9d49-1547b014a9c9
2025-01-15 12:26:39,711 - INFO - Verified VN network id 9 for VN 9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,711 - INFO - Verifications in API Server for VN ctest-vn-51103151 passed
2025-01-15 12:26:39,712 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,722 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/ede359d7-9aff-48f6-9d49-1547b014a9c9
2025-01-15 12:26:39,730 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/ede359d7-9aff-48f6-9d49-1547b014a9c9
2025-01-15 12:26:39,740 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/f664b884-4691-44ba-9269-74aa2a7305d8
2025-01-15 12:26:39,757 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-51103151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89337344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11108342092947540247', 'uuid-lslong': '11781104592700645468'}, 'enable': 'true', 'created': '2025-01-15T12:26:37', 'last-modified': '2025-01-15T12:26:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488041'}
2025-01-15 12:26:39,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 12:26:39,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51103151 passed
2025-01-15 12:26:39,766 - DEBUG - ====Verifying policy data for ctest-vn-51103151 in API_Server ======
2025-01-15 12:26:39,766 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-15 12:26:39,774 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7cd7407f-8c06-49c6-aa52-fa0244444a3c
2025-01-15 12:26:39,790 - DEBUG - Requesting: http://10.0.0.37:8082/project/5e641b02-5e75-4c97-ab94-514ed0d41ac2
2025-01-15 12:26:39,867 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/9a28c247-6da8-4917-a37e-e43545a5205c
2025-01-15 12:26:39,883 - DEBUG - ==>Verifying data for policy with id: 83b6d6e4-b1ff-4ddb-b514-4f59807074dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89337344', 'ctest-policy-allow-all-62387358']
2025-01-15 12:26:39,883 - INFO - VN ctest-vn-51103151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 12:26:39,883 - DEBUG - Verifying the vn in opserver
2025-01-15 12:26:39,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-51103151 virtual network link through opserver 10.0.0.37
2025-01-15 12:26:39,883 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-15 12:26:39,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-51103151', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-51103151?flat'}
2025-01-15 12:26:39,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89337344:ctest-vn-51103151 is found in opserver
2025-01-15 12:26:39,912 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 12:26:39,918 - DEBUG - VRF ids for VN ctest-vn-51103151: {}
2025-01-15 12:26:39,981 - DEBUG - Services list from nova: [