2025-01-13 06:53:13,306 - INFO - Domain Default found not creating
2025-01-13 06:53:13,463 - INFO - Project ctest-TestBasicPolicy-98943522 not found, creating it
2025-01-13 06:53:13,942 - INFO - Created Project:ctest-TestBasicPolicy-98943522, ID : c61911a6-49e4-48de-912c-56c6389ed253
2025-01-13 06:53:15,424 - INFO - ================================================================================
2025-01-13 06:53:15,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 06:53:15,425 - 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 06:53:15,679 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with
2025-01-13 06:53:15,679 - INFO - Initial checks done. Running the testcase now
2025-01-13 06:53:15,679 - INFO -
2025-01-13 06:53:16,213 - DEBUG - Response for create_network : {'network': {'id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'name': 'ctest-vn-50647603', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-50647603'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 06:53:16,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dbc8dad-bf18-4b37-9e41-0413582c8dfd', 'name': '', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'network_id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'ip_version': 4, 'cidr': '76.103.161.128/26', 'allocation_pools': [{'start': '76.103.161.130', 'end': '76.103.161.190'}], 'gateway_ip': '76.103.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.103.161.130', 'tags': [], 'project_id': 'c61911a649e448de912c56c6389ed253'}}
2025-01-13 06:53:16,446 - INFO - Created VN ctest-vn-50647603
2025-01-13 06:53:16,500 - DEBUG - VN ctest-vn-50647603 UUID is 9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:16,823 - DEBUG - Response for create_network : {'network': {'id': '89be0e26-ac57-4384-9006-9386ea91da95', 'name': 'ctest-vn-94516618', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-94516618'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 06:53:16,976 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0056883-8525-45e1-8110-b82731fc7f73', 'name': '', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'network_id': '89be0e26-ac57-4384-9006-9386ea91da95', 'ip_version': 4, 'cidr': '177.77.252.64/26', 'allocation_pools': [{'start': '177.77.252.66', 'end': '177.77.252.126'}], 'gateway_ip': '177.77.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.77.252.66', 'tags': [], 'project_id': 'c61911a649e448de912c56c6389ed253'}}
2025-01-13 06:53:16,992 - INFO - Created VN ctest-vn-94516618
2025-01-13 06:53:17,044 - DEBUG - VN ctest-vn-94516618 UUID is 89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:17,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603, 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-98943522:ctest-vn-94516618, 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 06:53:17,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'name': 'ctest-vn-50647603', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dbc8dad-bf18-4b37-9e41-0413582c8dfd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-50647603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']], 'subnet_ipam': [{'subnet_cidr': '76.103.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 06:53:17,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89be0e26-ac57-4384-9006-9386ea91da95', 'name': 'ctest-vn-94516618', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0056883-8525-45e1-8110-b82731fc7f73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-94516618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']], 'subnet_ipam': [{'subnet_cidr': '177.77.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 06:53:17,848 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-13 06:53:18,149 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-13 06:53:18,177 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5
2025-01-13 06:53:18,190 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253
2025-01-13 06:53:18,265 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,276 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,286 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e
2025-01-13 06:53:18,293 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e
2025-01-13 06:53:18,301 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/27daa008-d150-49e4-bc67-7eb54583639d
2025-01-13 06:53:18,307 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 06:53:18,307 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,318 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e
2025-01-13 06:53:18,336 - INFO - Verified VN network id 8 for VN 9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,337 - INFO - Verifications in API Server for VN ctest-vn-50647603 passed
2025-01-13 06:53:18,337 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,346 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e
2025-01-13 06:53:18,354 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e
2025-01-13 06:53:18,361 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/27daa008-d150-49e4-bc67-7eb54583639d
2025-01-13 06:53:18,374 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98943522', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11302200746470625145', 'uuid-lslong': '9270968795657140670'}, 'enable': 'true', 'created': '2025-01-13T06:53:16', 'last-modified': '2025-01-13T06:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943439'}
2025-01-13 06:53:18,381 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 06:53:18,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50647603 passed
2025-01-13 06:53:18,381 - DEBUG - ====Verifying policy data for ctest-vn-50647603 in API_Server ======
2025-01-13 06:53:18,381 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-13 06:53:18,388 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5
2025-01-13 06:53:18,401 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253
2025-01-13 06:53:18,476 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be
2025-01-13 06:53:18,486 - DEBUG - ==>Verifying data for policy with id: 2d628c50-521a-4d03-bcf9-3b1b792099e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']
2025-01-13 06:53:18,487 - INFO - VN ctest-vn-50647603 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 06:53:18,487 - DEBUG - Verifying the vn in opserver
2025-01-13 06:53:18,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603 virtual network link through opserver 10.0.0.28
2025-01-13 06:53:18,487 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-13 06:53:18,783 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-13 06:53:18,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603?flat'}
2025-01-13 06:53:18,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603 is found in opserver
2025-01-13 06:53:18,846 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 06:53:18,851 - DEBUG - VRF ids for VN ctest-vn-50647603: {}
2025-01-13 06:53:18,851 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-13 06:53:18,858 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5
2025-01-13 06:53:18,869 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253
2025-01-13 06:53:18,937 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:18,949 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:18,960 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369
2025-01-13 06:53:18,969 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369
2025-01-13 06:53:18,976 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/49a1f23a-014f-45a7-a5ee-0f1e500c80cb
2025-01-13 06:53:18,983 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 06:53:18,983 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:18,994 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369
2025-01-13 06:53:19,013 - INFO - Verified VN network id 9 for VN 89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:19,013 - INFO - Verifications in API Server for VN ctest-vn-94516618 passed
2025-01-13 06:53:19,013 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:19,027 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369
2025-01-13 06:53:19,035 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369
2025-01-13 06:53:19,043 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/49a1f23a-014f-45a7-a5ee-0f1e500c80cb
2025-01-13 06:53:19,058 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98943522', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9925386188034098052', 'uuid-lslong': '10378144598992214677'}, 'enable': 'true', 'created': '2025-01-13T06:53:16', 'last-modified': '2025-01-13T06:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389310'}
2025-01-13 06:53:19,065 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 06:53:19,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94516618 passed
2025-01-13 06:53:19,065 - DEBUG - ====Verifying policy data for ctest-vn-94516618 in API_Server ======
2025-01-13 06:53:19,065 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-13 06:53:19,072 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5
2025-01-13 06:53:19,086 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253
2025-01-13 06:53:19,160 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95
2025-01-13 06:53:19,170 - DEBUG - ==>Verifying data for policy with id: 2d628c50-521a-4d03-bcf9-3b1b792099e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']
2025-01-13 06:53:19,171 - INFO - VN ctest-vn-94516618 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 06:53:19,171 - DEBUG - Verifying the vn in opserver
2025-01-13 06:53:19,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618 virtual network link through opserver 10.0.0.28
2025-01-13 06:53:19,171 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-13 06:53:19,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618?flat'}
2025-01-13 06:53:19,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618 is found in opserver
2025-01-13 06:53:19,194 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 06:53:19,200 - DEBUG - VRF ids for VN ctest-vn-94516618: {}
2025-01-13 06:53:19,253 - DEBUG - Services list from nova: [