2025-03-28 11:22:31,635 - INFO - Domain Default found not creating
2025-03-28 11:22:31,815 - INFO - Project ctest-TestBasicPolicy-85221348 not found, creating it
2025-03-28 11:22:32,301 - INFO - Created Project:ctest-TestBasicPolicy-85221348, ID : ef2883db-48a3-41db-ab81-edfbf20e472c
2025-03-28 11:22:33,807 - INFO - ================================================================================
2025-03-28 11:22:33,807 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 11:22:33,807 - 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-28 11:22:34,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.10': '0'}} with
2025-03-28 11:22:34,071 - INFO - Initial checks done. Running the testcase now
2025-03-28 11:22:34,071 - INFO -
2025-03-28 11:22:34,643 - DEBUG - Response for create_network : {'network': {'id': '93ded381-e4e3-4666-b0f5-5108c0676b5d', 'name': 'ctest-vn-60035477', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'project_id': 'ef2883db48a341dbab81edfbf20e472c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-vn-60035477'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:22:34,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '39499fd8-2e95-4fb7-a24b-820f72db0776', 'name': '', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'network_id': '93ded381-e4e3-4666-b0f5-5108c0676b5d', 'ip_version': 4, 'cidr': '217.183.189.64/26', 'allocation_pools': [{'start': '217.183.189.66', 'end': '217.183.189.126'}], 'gateway_ip': '217.183.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.183.189.66', 'tags': [], 'project_id': 'ef2883db48a341dbab81edfbf20e472c'}}
2025-03-28 11:22:34,862 - INFO - Created VN ctest-vn-60035477
2025-03-28 11:22:34,919 - DEBUG - VN ctest-vn-60035477 UUID is 93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:35,226 - DEBUG - Response for create_network : {'network': {'id': 'e36863d7-4279-4b06-886f-23a9331c2069', 'name': 'ctest-vn-00005246', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'project_id': 'ef2883db48a341dbab81edfbf20e472c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-vn-00005246'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:22:35,386 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ae02a7-516f-4ec6-bbac-cdff1f7f5fa8', 'name': '', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'network_id': 'e36863d7-4279-4b06-886f-23a9331c2069', 'ip_version': 4, 'cidr': '126.6.13.128/26', 'allocation_pools': [{'start': '126.6.13.130', 'end': '126.6.13.190'}], 'gateway_ip': '126.6.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.6.13.130', 'tags': [], 'project_id': 'ef2883db48a341dbab81edfbf20e472c'}}
2025-03-28 11:22:35,406 - INFO - Created VN ctest-vn-00005246
2025-03-28 11:22:35,459 - DEBUG - VN ctest-vn-00005246 UUID is e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:35,582 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477, 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-85221348:ctest-vn-00005246, 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-28 11:22:35,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93ded381-e4e3-4666-b0f5-5108c0676b5d', 'name': 'ctest-vn-60035477', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'project_id': 'ef2883db48a341dbab81edfbf20e472c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39499fd8-2e95-4fb7-a24b-820f72db0776'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-vn-60035477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-policy-allow-all-69209176']], 'subnet_ipam': [{'subnet_cidr': '217.183.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:22:36,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e36863d7-4279-4b06-886f-23a9331c2069', 'name': 'ctest-vn-00005246', 'tenant_id': 'ef2883db48a341dbab81edfbf20e472c', 'project_id': 'ef2883db48a341dbab81edfbf20e472c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ae02a7-516f-4ec6-bbac-cdff1f7f5fa8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-vn-00005246'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-policy-allow-all-69209176']], 'subnet_ipam': [{'subnet_cidr': '126.6.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:22:36,311 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-28 11:22:36,618 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-28 11:22:36,650 - DEBUG - Requesting: http://10.0.0.46:8082/domain/08c9f506-ca23-4de7-9f2e-fa8b19b1204a
2025-03-28 11:22:36,665 - DEBUG - Requesting: http://10.0.0.46:8082/project/ef2883db-48a3-41db-ab81-edfbf20e472c
2025-03-28 11:22:36,748 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,761 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,773 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1be54216-4eda-4eff-aede-cf311bb0ddef
2025-03-28 11:22:36,783 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1be54216-4eda-4eff-aede-cf311bb0ddef
2025-03-28 11:22:36,792 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/4575d541-9bb7-46f8-b715-c4d6e30e6970
2025-03-28 11:22:36,800 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 11:22:36,800 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,811 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1be54216-4eda-4eff-aede-cf311bb0ddef
2025-03-28 11:22:36,833 - INFO - Verified VN network id 8 for VN 93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,834 - INFO - Verifications in API Server for VN ctest-vn-60035477 passed
2025-03-28 11:22:36,834 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,848 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1be54216-4eda-4eff-aede-cf311bb0ddef
2025-03-28 11:22:36,857 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1be54216-4eda-4eff-aede-cf311bb0ddef
2025-03-28 11:22:36,865 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/4575d541-9bb7-46f8-b715-c4d6e30e6970
2025-03-28 11:22:36,884 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85221348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10655186323249514086', 'uuid-lslong': '12751187017999018845'}, 'enable': 'true', 'created': '2025-03-28T11:22:34', 'last-modified': '2025-03-28T11:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015962'}
2025-03-28 11:22:36,892 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 11:22:36,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60035477 passed
2025-03-28 11:22:36,892 - DEBUG - ====Verifying policy data for ctest-vn-60035477 in API_Server ======
2025-03-28 11:22:36,892 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-28 11:22:36,898 - DEBUG - Requesting: http://10.0.0.46:8082/domain/08c9f506-ca23-4de7-9f2e-fa8b19b1204a
2025-03-28 11:22:36,911 - DEBUG - Requesting: http://10.0.0.46:8082/project/ef2883db-48a3-41db-ab81-edfbf20e472c
2025-03-28 11:22:36,984 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/93ded381-e4e3-4666-b0f5-5108c0676b5d
2025-03-28 11:22:36,995 - DEBUG - ==>Verifying data for policy with id: 48b0de21-6426-4852-b174-2526509872f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-policy-allow-all-69209176']
2025-03-28 11:22:36,995 - INFO - VN ctest-vn-60035477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 11:22:36,995 - DEBUG - Verifying the vn in opserver
2025-03-28 11:22:36,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477 virtual network link through opserver 10.0.0.46
2025-03-28 11:22:36,996 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-28 11:22:37,295 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-28 11:22:37,359 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477?flat'}
2025-03-28 11:22:37,359 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-60035477 is found in opserver
2025-03-28 11:22:37,373 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 11:22:37,379 - DEBUG - VRF ids for VN ctest-vn-60035477: {}
2025-03-28 11:22:37,379 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-28 11:22:37,385 - DEBUG - Requesting: http://10.0.0.46:8082/domain/08c9f506-ca23-4de7-9f2e-fa8b19b1204a
2025-03-28 11:22:37,397 - DEBUG - Requesting: http://10.0.0.46:8082/project/ef2883db-48a3-41db-ab81-edfbf20e472c
2025-03-28 11:22:37,471 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,485 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,496 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d4829abb-1f77-4bfe-8bea-69b1d235af3f
2025-03-28 11:22:37,504 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d4829abb-1f77-4bfe-8bea-69b1d235af3f
2025-03-28 11:22:37,512 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/582f9f81-9cfd-480d-9a12-6a52cf215ac3
2025-03-28 11:22:37,520 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 11:22:37,520 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,532 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d4829abb-1f77-4bfe-8bea-69b1d235af3f
2025-03-28 11:22:37,547 - INFO - Verified VN network id 9 for VN e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,548 - INFO - Verifications in API Server for VN ctest-vn-00005246 passed
2025-03-28 11:22:37,548 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,558 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d4829abb-1f77-4bfe-8bea-69b1d235af3f
2025-03-28 11:22:37,568 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d4829abb-1f77-4bfe-8bea-69b1d235af3f
2025-03-28 11:22:37,578 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/582f9f81-9cfd-480d-9a12-6a52cf215ac3
2025-03-28 11:22:37,592 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-00005246', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85221348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16386457020371913478', 'uuid-lslong': '9831115721187008617'}, 'enable': 'true', 'created': '2025-03-28T11:22:35', 'last-modified': '2025-03-28T11:22:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488968'}
2025-03-28 11:22:37,599 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 11:22:37,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00005246 passed
2025-03-28 11:22:37,599 - DEBUG - ====Verifying policy data for ctest-vn-00005246 in API_Server ======
2025-03-28 11:22:37,599 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-28 11:22:37,606 - DEBUG - Requesting: http://10.0.0.46:8082/domain/08c9f506-ca23-4de7-9f2e-fa8b19b1204a
2025-03-28 11:22:37,621 - DEBUG - Requesting: http://10.0.0.46:8082/project/ef2883db-48a3-41db-ab81-edfbf20e472c
2025-03-28 11:22:37,698 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/e36863d7-4279-4b06-886f-23a9331c2069
2025-03-28 11:22:37,709 - DEBUG - ==>Verifying data for policy with id: 48b0de21-6426-4852-b174-2526509872f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-85221348', 'ctest-policy-allow-all-69209176']
2025-03-28 11:22:37,709 - INFO - VN ctest-vn-00005246 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 11:22:37,709 - DEBUG - Verifying the vn in opserver
2025-03-28 11:22:37,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-00005246 virtual network link through opserver 10.0.0.46
2025-03-28 11:22:37,710 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-28 11:22:37,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-00005246', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-00005246?flat'}
2025-03-28 11:22:37,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85221348:ctest-vn-00005246 is found in opserver
2025-03-28 11:22:37,735 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 11:22:37,741 - DEBUG - VRF ids for VN ctest-vn-00005246: {}
2025-03-28 11:22:37,808 - DEBUG - Services list from nova: [