2025-01-13 18:58:03,605 - INFO - Domain Default found not creating
2025-01-13 18:58:03,771 - INFO - Project ctest-TestBasicPolicy-75388431 not found, creating it
2025-01-13 18:58:04,257 - INFO - Created Project:ctest-TestBasicPolicy-75388431, ID : bd931da2-52ac-424a-92af-cba0efd8a708
2025-01-13 18:58:05,775 - INFO - ================================================================================
2025-01-13 18:58:05,776 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 18:58:05,776 - 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-13 18:58:06,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.34': '0'}} with
2025-01-13 18:58:06,040 - INFO - Initial checks done. Running the testcase now
2025-01-13 18:58:06,040 - INFO -
2025-01-13 18:58:06,621 - DEBUG - Response for create_network : {'network': {'id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'name': 'ctest-vn-17768352', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-17768352'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:58:06,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fdab6af-f5ec-4e72-a39a-5de8e7837a50', 'name': '', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'network_id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'ip_version': 4, 'cidr': '192.165.252.128/26', 'allocation_pools': [{'start': '192.165.252.130', 'end': '192.165.252.190'}], 'gateway_ip': '192.165.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.165.252.130', 'tags': [], 'project_id': 'bd931da252ac424a92afcba0efd8a708'}}
2025-01-13 18:58:06,835 - INFO - Created VN ctest-vn-17768352
2025-01-13 18:58:06,889 - DEBUG - VN ctest-vn-17768352 UUID is 31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:07,206 - DEBUG - Response for create_network : {'network': {'id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'name': 'ctest-vn-91756004', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-91756004'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:58:07,395 - DEBUG - Response for create_subnet : {'subnet': {'id': '17dfd665-9b5f-47a2-b8c8-11d1eecfa081', 'name': '', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'network_id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'ip_version': 4, 'cidr': '62.241.156.64/26', 'allocation_pools': [{'start': '62.241.156.66', 'end': '62.241.156.126'}], 'gateway_ip': '62.241.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.241.156.66', 'tags': [], 'project_id': 'bd931da252ac424a92afcba0efd8a708'}}
2025-01-13 18:58:07,415 - INFO - Created VN ctest-vn-91756004
2025-01-13 18:58:07,470 - DEBUG - VN ctest-vn-91756004 UUID is edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:07,592 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352, 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-75388431:ctest-vn-91756004, 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-13 18:58:07,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'name': 'ctest-vn-17768352', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fdab6af-f5ec-4e72-a39a-5de8e7837a50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-17768352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']], 'subnet_ipam': [{'subnet_cidr': '192.165.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:58:08,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'name': 'ctest-vn-91756004', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17dfd665-9b5f-47a2-b8c8-11d1eecfa081'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-91756004'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']], 'subnet_ipam': [{'subnet_cidr': '62.241.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:58:08,325 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 18:58:08,626 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 18:58:08,657 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e
2025-01-13 18:58:08,671 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708
2025-01-13 18:58:08,750 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:08,762 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:08,773 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335
2025-01-13 18:58:08,782 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335
2025-01-13 18:58:08,790 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d54ce8c3-e106-4f6b-bd0b-c08d0fde61bd
2025-01-13 18:58:08,798 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 18:58:08,798 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:08,809 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335
2025-01-13 18:58:08,826 - INFO - Verified VN network id 7 for VN 31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:08,826 - INFO - Verifications in API Server for VN ctest-vn-17768352 passed
2025-01-13 18:58:08,827 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:08,839 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335
2025-01-13 18:58:08,847 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335
2025-01-13 18:58:08,855 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d54ce8c3-e106-4f6b-bd0b-c08d0fde61bd
2025-01-13 18:58:08,871 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75388431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3595557881398053799', 'uuid-lslong': '12956104035278466108'}, 'enable': 'true', 'created': '2025-01-13T18:58:06', 'last-modified': '2025-01-13T18:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992839'}
2025-01-13 18:58:08,879 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 18:58:08,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17768352 passed
2025-01-13 18:58:08,879 - DEBUG - ====Verifying policy data for ctest-vn-17768352 in API_Server ======
2025-01-13 18:58:08,879 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 18:58:08,886 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e
2025-01-13 18:58:08,902 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708
2025-01-13 18:58:08,991 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c
2025-01-13 18:58:09,006 - DEBUG - ==>Verifying data for policy with id: 20e35974-d785-441d-a50f-210eb7f46a4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']
2025-01-13 18:58:09,006 - INFO - VN ctest-vn-17768352 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 18:58:09,006 - DEBUG - Verifying the vn in opserver
2025-01-13 18:58:09,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352 virtual network link through opserver 10.0.0.17
2025-01-13 18:58:09,006 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 18:58:09,307 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 18:58:09,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352?flat'}
2025-01-13 18:58:09,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352 is found in opserver
2025-01-13 18:58:09,386 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 18:58:09,392 - DEBUG - VRF ids for VN ctest-vn-17768352: {}
2025-01-13 18:58:09,392 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 18:58:09,400 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e
2025-01-13 18:58:09,417 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708
2025-01-13 18:58:09,497 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,515 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,528 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813
2025-01-13 18:58:09,538 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813
2025-01-13 18:58:09,546 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/08e12107-9522-4168-982a-b9b0e57a4f86
2025-01-13 18:58:09,555 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 18:58:09,555 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,567 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813
2025-01-13 18:58:09,587 - INFO - Verified VN network id 8 for VN edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,587 - INFO - Verifications in API Server for VN ctest-vn-91756004 passed
2025-01-13 18:58:09,587 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,599 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813
2025-01-13 18:58:09,608 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813
2025-01-13 18:58:09,619 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/08e12107-9522-4168-982a-b9b0e57a4f86
2025-01-13 18:58:09,636 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75388431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17138701552212855782', 'uuid-lslong': '9647639996315612558'}, 'enable': 'true', 'created': '2025-01-13T18:58:07', 'last-modified': '2025-01-13T18:58:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494484'}
2025-01-13 18:58:09,644 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 18:58:09,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91756004 passed
2025-01-13 18:58:09,645 - DEBUG - ====Verifying policy data for ctest-vn-91756004 in API_Server ======
2025-01-13 18:58:09,645 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 18:58:09,652 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e
2025-01-13 18:58:09,666 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708
2025-01-13 18:58:09,740 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e
2025-01-13 18:58:09,751 - DEBUG - ==>Verifying data for policy with id: 20e35974-d785-441d-a50f-210eb7f46a4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']
2025-01-13 18:58:09,751 - INFO - VN ctest-vn-91756004 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 18:58:09,751 - DEBUG - Verifying the vn in opserver
2025-01-13 18:58:09,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004 virtual network link through opserver 10.0.0.17
2025-01-13 18:58:09,751 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 18:58:09,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004?flat'}
2025-01-13 18:58:09,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004 is found in opserver
2025-01-13 18:58:09,775 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 18:58:09,780 - DEBUG - VRF ids for VN ctest-vn-91756004: {}
2025-01-13 18:58:09,847 - DEBUG - Services list from nova: [