2025-04-07 16:35:13,023 - INFO - Domain Default found not creating
2025-04-07 16:35:13,217 - INFO - Project ctest-TestBasicPolicy-18025439 not found, creating it
2025-04-07 16:35:13,778 - INFO - Created Project:ctest-TestBasicPolicy-18025439, ID : d77c09dc-9489-4e0f-a37c-2a3add626bb9
2025-04-07 16:35:15,412 - INFO - ================================================================================
2025-04-07 16:35:15,412 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 16:35:15,412 - 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-04-07 16:35:15,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.10': '0'}} with
2025-04-07 16:35:15,681 - INFO - Initial checks done. Running the testcase now
2025-04-07 16:35:15,682 - INFO -
2025-04-07 16:35:16,271 - DEBUG - Response for create_network : {'network': {'id': '52002af9-a10c-438b-98cc-f2769251f235', 'name': 'ctest-vn-81640821', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-vn-81640821'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 16:35:16,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '45578929-092e-496c-8c4c-a14cd6ae6688', 'name': '', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'network_id': '52002af9-a10c-438b-98cc-f2769251f235', 'ip_version': 4, 'cidr': '61.238.0.64/26', 'allocation_pools': [{'start': '61.238.0.66', 'end': '61.238.0.126'}], 'gateway_ip': '61.238.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.238.0.66', 'tags': [], 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9'}}
2025-04-07 16:35:16,504 - INFO - Created VN ctest-vn-81640821
2025-04-07 16:35:16,558 - DEBUG - VN ctest-vn-81640821 UUID is 52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:16,885 - DEBUG - Response for create_network : {'network': {'id': '65668023-a07e-4c3a-848b-6390099cf7e5', 'name': 'ctest-vn-38066350', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-vn-38066350'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 16:35:17,138 - DEBUG - Response for create_subnet : {'subnet': {'id': '878ba54d-af9c-4a06-9f05-d88446e6be67', 'name': '', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'network_id': '65668023-a07e-4c3a-848b-6390099cf7e5', 'ip_version': 4, 'cidr': '166.39.110.0/26', 'allocation_pools': [{'start': '166.39.110.2', 'end': '166.39.110.62'}], 'gateway_ip': '166.39.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.39.110.2', 'tags': [], 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9'}}
2025-04-07 16:35:17,163 - INFO - Created VN ctest-vn-38066350
2025-04-07 16:35:17,217 - DEBUG - VN ctest-vn-38066350 UUID is 65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:17,342 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821, 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-18025439:ctest-vn-38066350, 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-04-07 16:35:17,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52002af9-a10c-438b-98cc-f2769251f235', 'name': 'ctest-vn-81640821', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45578929-092e-496c-8c4c-a14cd6ae6688'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-vn-81640821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-policy-allow-all-41046691']], 'subnet_ipam': [{'subnet_cidr': '61.238.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 16:35:17,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65668023-a07e-4c3a-848b-6390099cf7e5', 'name': 'ctest-vn-38066350', 'tenant_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'project_id': 'd77c09dc94894e0fa37c2a3add626bb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['878ba54d-af9c-4a06-9f05-d88446e6be67'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-vn-38066350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-policy-allow-all-41046691']], 'subnet_ipam': [{'subnet_cidr': '166.39.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 16:35:18,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-07 16:35:18,406 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-07 16:35:18,442 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35f328c0-b1b9-42f7-8fb1-7ceebbf028f5
2025-04-07 16:35:18,459 - DEBUG - Requesting: http://10.0.0.50:8082/project/d77c09dc-9489-4e0f-a37c-2a3add626bb9
2025-04-07 16:35:18,544 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,569 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaeaf127-f5bd-421d-bcef-dc9ed71a30cb
2025-04-07 16:35:18,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaeaf127-f5bd-421d-bcef-dc9ed71a30cb
2025-04-07 16:35:18,593 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d5dd0044-ce2c-4265-8d47-cce92b48efae
2025-04-07 16:35:18,602 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 16:35:18,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,615 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaeaf127-f5bd-421d-bcef-dc9ed71a30cb
2025-04-07 16:35:18,636 - INFO - Verified VN network id 8 for VN 52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,636 - INFO - Verifications in API Server for VN ctest-vn-81640821 passed
2025-04-07 16:35:18,636 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,651 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaeaf127-f5bd-421d-bcef-dc9ed71a30cb
2025-04-07 16:35:18,662 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaeaf127-f5bd-421d-bcef-dc9ed71a30cb
2025-04-07 16:35:18,672 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d5dd0044-ce2c-4265-8d47-cce92b48efae
2025-04-07 16:35:18,687 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18025439', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5908769962747249547', 'uuid-lslong': '11010441780088926773'}, 'enable': 'true', 'created': '2025-04-07T16:35:16', 'last-modified': '2025-04-07T16:35:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038838'}
2025-04-07 16:35:18,695 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 16:35:18,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81640821 passed
2025-04-07 16:35:18,696 - DEBUG - ====Verifying policy data for ctest-vn-81640821 in API_Server ======
2025-04-07 16:35:18,696 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-07 16:35:18,704 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35f328c0-b1b9-42f7-8fb1-7ceebbf028f5
2025-04-07 16:35:18,717 - DEBUG - Requesting: http://10.0.0.50:8082/project/d77c09dc-9489-4e0f-a37c-2a3add626bb9
2025-04-07 16:35:18,801 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52002af9-a10c-438b-98cc-f2769251f235
2025-04-07 16:35:18,812 - DEBUG - ==>Verifying data for policy with id: 1d80c509-5d1c-46b4-b7b8-c3361e53e456, fqn: ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-policy-allow-all-41046691']
2025-04-07 16:35:18,812 - INFO - VN ctest-vn-81640821 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 16:35:18,812 - DEBUG - Verifying the vn in opserver
2025-04-07 16:35:18,812 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821 virtual network link through opserver 10.0.0.50
2025-04-07 16:35:18,812 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-07 16:35:19,112 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-07 16:35:19,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821?flat'}
2025-04-07 16:35:19,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-81640821 is found in opserver
2025-04-07 16:35:19,199 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 16:35:19,205 - DEBUG - VRF ids for VN ctest-vn-81640821: {}
2025-04-07 16:35:19,205 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-07 16:35:19,214 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35f328c0-b1b9-42f7-8fb1-7ceebbf028f5
2025-04-07 16:35:19,230 - DEBUG - Requesting: http://10.0.0.50:8082/project/d77c09dc-9489-4e0f-a37c-2a3add626bb9
2025-04-07 16:35:19,309 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,325 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,337 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/708e880f-ce6c-4287-94a8-b740a4c77cf7
2025-04-07 16:35:19,346 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/708e880f-ce6c-4287-94a8-b740a4c77cf7
2025-04-07 16:35:19,356 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/abcbc1c2-b944-4187-bfc8-c2f7a378c69b
2025-04-07 16:35:19,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 16:35:19,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,378 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/708e880f-ce6c-4287-94a8-b740a4c77cf7
2025-04-07 16:35:19,398 - INFO - Verified VN network id 9 for VN 65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,399 - INFO - Verifications in API Server for VN ctest-vn-38066350 passed
2025-04-07 16:35:19,399 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,412 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/708e880f-ce6c-4287-94a8-b740a4c77cf7
2025-04-07 16:35:19,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/708e880f-ce6c-4287-94a8-b740a4c77cf7
2025-04-07 16:35:19,431 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/abcbc1c2-b944-4187-bfc8-c2f7a378c69b
2025-04-07 16:35:19,449 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-38066350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18025439', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7306668335960050746', 'uuid-lslong': '9550836905056991205'}, 'enable': 'true', 'created': '2025-04-07T16:35:16', 'last-modified': '2025-04-07T16:35:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.553753'}
2025-04-07 16:35:19,457 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 16:35:19,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38066350 passed
2025-04-07 16:35:19,457 - DEBUG - ====Verifying policy data for ctest-vn-38066350 in API_Server ======
2025-04-07 16:35:19,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-07 16:35:19,464 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35f328c0-b1b9-42f7-8fb1-7ceebbf028f5
2025-04-07 16:35:19,479 - DEBUG - Requesting: http://10.0.0.50:8082/project/d77c09dc-9489-4e0f-a37c-2a3add626bb9
2025-04-07 16:35:19,561 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65668023-a07e-4c3a-848b-6390099cf7e5
2025-04-07 16:35:19,573 - DEBUG - ==>Verifying data for policy with id: 1d80c509-5d1c-46b4-b7b8-c3361e53e456, fqn: ['default-domain', 'ctest-TestBasicPolicy-18025439', 'ctest-policy-allow-all-41046691']
2025-04-07 16:35:19,573 - INFO - VN ctest-vn-38066350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 16:35:19,573 - DEBUG - Verifying the vn in opserver
2025-04-07 16:35:19,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-38066350 virtual network link through opserver 10.0.0.50
2025-04-07 16:35:19,573 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-07 16:35:19,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-38066350', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-38066350?flat'}
2025-04-07 16:35:19,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18025439:ctest-vn-38066350 is found in opserver
2025-04-07 16:35:19,597 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 16:35:19,603 - DEBUG - VRF ids for VN ctest-vn-38066350: {}
2025-04-07 16:35:19,671 - DEBUG - Services list from nova: [