2025-03-13 02:27:37,883 - INFO - Domain Default found not creating
2025-03-13 02:27:38,043 - INFO - Project ctest-TestBasicPolicy-59822636 not found, creating it
2025-03-13 02:27:38,560 - INFO - Created Project:ctest-TestBasicPolicy-59822636, ID : daaba881-9454-448e-be27-7fff87830a4c
2025-03-13 02:27:40,894 - INFO - ================================================================================
2025-03-13 02:27:40,895 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-13 02:27:40,895 - 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-13 02:27:41,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.14': '0'}} with
2025-03-13 02:27:41,165 - INFO - Initial checks done. Running the testcase now
2025-03-13 02:27:41,165 - INFO -
2025-03-13 02:27:41,739 - DEBUG - Response for create_network : {'network': {'id': 'ac77a84b-c23b-4233-a632-53df4c07ec91', 'name': 'ctest-vn-02192949', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'project_id': 'daaba8819454448ebe277fff87830a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-vn-02192949'], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:27:41,907 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc4b3091-44bf-47a1-87a6-144a9e112bcc', 'name': '', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'network_id': 'ac77a84b-c23b-4233-a632-53df4c07ec91', 'ip_version': 4, 'cidr': '15.11.50.192/26', 'allocation_pools': [{'start': '15.11.50.194', 'end': '15.11.50.254'}], 'gateway_ip': '15.11.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.11.50.194', 'tags': [], 'project_id': 'daaba8819454448ebe277fff87830a4c'}}
2025-03-13 02:27:41,927 - INFO - Created VN ctest-vn-02192949
2025-03-13 02:27:41,982 - DEBUG - VN ctest-vn-02192949 UUID is ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:42,284 - DEBUG - Response for create_network : {'network': {'id': 'cba38464-7888-464a-b69b-02621680e6c5', 'name': 'ctest-vn-82570365', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'project_id': 'daaba8819454448ebe277fff87830a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-vn-82570365'], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:27:42,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b828fe9-d381-4ed7-9aba-883952212b62', 'name': '', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'network_id': 'cba38464-7888-464a-b69b-02621680e6c5', 'ip_version': 4, 'cidr': '192.52.122.128/26', 'allocation_pools': [{'start': '192.52.122.130', 'end': '192.52.122.190'}], 'gateway_ip': '192.52.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.52.122.130', 'tags': [], 'project_id': 'daaba8819454448ebe277fff87830a4c'}}
2025-03-13 02:27:42,512 - INFO - Created VN ctest-vn-82570365
2025-03-13 02:27:42,570 - DEBUG - VN ctest-vn-82570365 UUID is cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:42,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949, 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-59822636:ctest-vn-82570365, 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-13 02:27:42,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac77a84b-c23b-4233-a632-53df4c07ec91', 'name': 'ctest-vn-02192949', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'project_id': 'daaba8819454448ebe277fff87830a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc4b3091-44bf-47a1-87a6-144a9e112bcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-vn-02192949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-policy-allow-all-78336112']], 'subnet_ipam': [{'subnet_cidr': '15.11.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:27:43,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cba38464-7888-464a-b69b-02621680e6c5', 'name': 'ctest-vn-82570365', 'tenant_id': 'daaba8819454448ebe277fff87830a4c', 'project_id': 'daaba8819454448ebe277fff87830a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b828fe9-d381-4ed7-9aba-883952212b62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-vn-82570365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-policy-allow-all-78336112']], 'subnet_ipam': [{'subnet_cidr': '192.52.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:27:43,370 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-13 02:27:43,707 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-13 02:27:43,737 - DEBUG - Requesting: http://10.0.0.17:8082/domain/ebac5c04-bdb2-4198-b7ab-184172d42f26
2025-03-13 02:27:43,753 - DEBUG - Requesting: http://10.0.0.17:8082/project/daaba881-9454-448e-be27-7fff87830a4c
2025-03-13 02:27:43,831 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:43,844 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:43,856 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d4cd8117-2aff-430d-a4ec-65fe566156d0
2025-03-13 02:27:43,867 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d4cd8117-2aff-430d-a4ec-65fe566156d0
2025-03-13 02:27:43,875 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/90a7c9b1-8f69-47e7-84d2-a590f22fe12b
2025-03-13 02:27:43,884 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-13 02:27:43,884 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:43,895 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d4cd8117-2aff-430d-a4ec-65fe566156d0
2025-03-13 02:27:43,911 - INFO - Verified VN network id 8 for VN ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:43,911 - INFO - Verifications in API Server for VN ctest-vn-02192949 passed
2025-03-13 02:27:43,911 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:43,921 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d4cd8117-2aff-430d-a4ec-65fe566156d0
2025-03-13 02:27:43,928 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d4cd8117-2aff-430d-a4ec-65fe566156d0
2025-03-13 02:27:43,936 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/90a7c9b1-8f69-47e7-84d2-a590f22fe12b
2025-03-13 02:27:43,950 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59822636', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12427586740086850099', 'uuid-lslong': '11975726577649970321'}, 'enable': 'true', 'created': '2025-03-13T02:27:41', 'last-modified': '2025-03-13T02:27:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968966'}
2025-03-13 02:27:43,957 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-13 02:27:43,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02192949 passed
2025-03-13 02:27:43,957 - DEBUG - ====Verifying policy data for ctest-vn-02192949 in API_Server ======
2025-03-13 02:27:43,957 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-13 02:27:43,963 - DEBUG - Requesting: http://10.0.0.17:8082/domain/ebac5c04-bdb2-4198-b7ab-184172d42f26
2025-03-13 02:27:43,977 - DEBUG - Requesting: http://10.0.0.17:8082/project/daaba881-9454-448e-be27-7fff87830a4c
2025-03-13 02:27:44,054 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ac77a84b-c23b-4233-a632-53df4c07ec91
2025-03-13 02:27:44,065 - DEBUG - ==>Verifying data for policy with id: bbf86883-bebd-498b-b0c9-8388a577201e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-policy-allow-all-78336112']
2025-03-13 02:27:44,065 - INFO - VN ctest-vn-02192949 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-13 02:27:44,065 - DEBUG - Verifying the vn in opserver
2025-03-13 02:27:44,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949 virtual network link through opserver 10.0.0.17
2025-03-13 02:27:44,066 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-13 02:27:44,401 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-13 02:27:44,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949?flat'}
2025-03-13 02:27:44,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-02192949 is found in opserver
2025-03-13 02:27:44,471 - DEBUG - Do not have enough data to verify VN in agent
2025-03-13 02:27:44,478 - DEBUG - VRF ids for VN ctest-vn-02192949: {}
2025-03-13 02:27:44,478 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-13 02:27:44,484 - DEBUG - Requesting: http://10.0.0.17:8082/domain/ebac5c04-bdb2-4198-b7ab-184172d42f26
2025-03-13 02:27:44,498 - DEBUG - Requesting: http://10.0.0.17:8082/project/daaba881-9454-448e-be27-7fff87830a4c
2025-03-13 02:27:44,573 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,588 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,599 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5a15bed0-0451-4e4b-9719-97d1f46bd2df
2025-03-13 02:27:44,607 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5a15bed0-0451-4e4b-9719-97d1f46bd2df
2025-03-13 02:27:44,615 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a1108953-8517-4adc-b733-9f16d2576f1e
2025-03-13 02:27:44,623 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-13 02:27:44,623 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,634 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5a15bed0-0451-4e4b-9719-97d1f46bd2df
2025-03-13 02:27:44,650 - INFO - Verified VN network id 9 for VN cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,650 - INFO - Verifications in API Server for VN ctest-vn-82570365 passed
2025-03-13 02:27:44,650 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,665 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5a15bed0-0451-4e4b-9719-97d1f46bd2df
2025-03-13 02:27:44,674 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5a15bed0-0451-4e4b-9719-97d1f46bd2df
2025-03-13 02:27:44,684 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a1108953-8517-4adc-b733-9f16d2576f1e
2025-03-13 02:27:44,699 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-82570365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59822636', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14673717577957000778', 'uuid-lslong': '13158113356600633029'}, 'enable': 'true', 'created': '2025-03-13T02:27:42', 'last-modified': '2025-03-13T02:27:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530288'}
2025-03-13 02:27:44,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-13 02:27:44,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82570365 passed
2025-03-13 02:27:44,706 - DEBUG - ====Verifying policy data for ctest-vn-82570365 in API_Server ======
2025-03-13 02:27:44,706 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-13 02:27:44,713 - DEBUG - Requesting: http://10.0.0.17:8082/domain/ebac5c04-bdb2-4198-b7ab-184172d42f26
2025-03-13 02:27:44,726 - DEBUG - Requesting: http://10.0.0.17:8082/project/daaba881-9454-448e-be27-7fff87830a4c
2025-03-13 02:27:44,804 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cba38464-7888-464a-b69b-02621680e6c5
2025-03-13 02:27:44,816 - DEBUG - ==>Verifying data for policy with id: bbf86883-bebd-498b-b0c9-8388a577201e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59822636', 'ctest-policy-allow-all-78336112']
2025-03-13 02:27:44,816 - INFO - VN ctest-vn-82570365 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-13 02:27:44,816 - DEBUG - Verifying the vn in opserver
2025-03-13 02:27:44,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-82570365 virtual network link through opserver 10.0.0.17
2025-03-13 02:27:44,816 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-13 02:27:44,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-82570365', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-82570365?flat'}
2025-03-13 02:27:44,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59822636:ctest-vn-82570365 is found in opserver
2025-03-13 02:27:44,841 - DEBUG - Do not have enough data to verify VN in agent
2025-03-13 02:27:44,846 - DEBUG - VRF ids for VN ctest-vn-82570365: {}
2025-03-13 02:27:44,908 - DEBUG - Services list from nova: [