2025-02-05 06:46:21,935 - INFO - Domain Default found not creating
2025-02-05 06:46:22,079 - INFO - Project ctest-TestBasicPolicy-09460084 not found, creating it
2025-02-05 06:46:22,528 - INFO - Created Project:ctest-TestBasicPolicy-09460084, ID : 437ccbb1-15b6-4775-9366-f836404d4829
2025-02-05 06:46:23,967 - INFO - ================================================================================
2025-02-05 06:46:23,967 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 06:46:23,967 - 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-02-05 06:46:24,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.13': '0'}} with
2025-02-05 06:46:24,229 - INFO - Initial checks done. Running the testcase now
2025-02-05 06:46:24,229 - INFO -
2025-02-05 06:46:24,755 - DEBUG - Response for create_network : {'network': {'id': '2089a9f6-836c-454c-89a6-240b755878fa', 'name': 'ctest-vn-81066543', 'tenant_id': '437ccbb115b647759366f836404d4829', 'project_id': '437ccbb115b647759366f836404d4829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-vn-81066543'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 06:46:24,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '383247e9-e72a-4721-beaf-cb28823b4458', 'name': '', 'tenant_id': '437ccbb115b647759366f836404d4829', 'network_id': '2089a9f6-836c-454c-89a6-240b755878fa', 'ip_version': 4, 'cidr': '223.185.161.0/26', 'allocation_pools': [{'start': '223.185.161.2', 'end': '223.185.161.62'}], 'gateway_ip': '223.185.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.185.161.2', 'tags': [], 'project_id': '437ccbb115b647759366f836404d4829'}}
2025-02-05 06:46:25,007 - INFO - Created VN ctest-vn-81066543
2025-02-05 06:46:25,058 - DEBUG - VN ctest-vn-81066543 UUID is 2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:25,366 - DEBUG - Response for create_network : {'network': {'id': 'e1bbdada-476e-479e-93cd-0725a7fd54e1', 'name': 'ctest-vn-18189765', 'tenant_id': '437ccbb115b647759366f836404d4829', 'project_id': '437ccbb115b647759366f836404d4829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-vn-18189765'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 06:46:25,529 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eda54fbf-a0c3-484d-a2a5-7a64dd321382', 'name': '', 'tenant_id': '437ccbb115b647759366f836404d4829', 'network_id': 'e1bbdada-476e-479e-93cd-0725a7fd54e1', 'ip_version': 4, 'cidr': '166.59.115.0/26', 'allocation_pools': [{'start': '166.59.115.2', 'end': '166.59.115.62'}], 'gateway_ip': '166.59.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.59.115.2', 'tags': [], 'project_id': '437ccbb115b647759366f836404d4829'}}
2025-02-05 06:46:25,545 - INFO - Created VN ctest-vn-18189765
2025-02-05 06:46:25,594 - DEBUG - VN ctest-vn-18189765 UUID is e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:25,702 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543, 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-09460084:ctest-vn-18189765, 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-02-05 06:46:25,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2089a9f6-836c-454c-89a6-240b755878fa', 'name': 'ctest-vn-81066543', 'tenant_id': '437ccbb115b647759366f836404d4829', 'project_id': '437ccbb115b647759366f836404d4829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['383247e9-e72a-4721-beaf-cb28823b4458'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-vn-81066543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-policy-allow-all-52661155']], 'subnet_ipam': [{'subnet_cidr': '223.185.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 06:46:26,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1bbdada-476e-479e-93cd-0725a7fd54e1', 'name': 'ctest-vn-18189765', 'tenant_id': '437ccbb115b647759366f836404d4829', 'project_id': '437ccbb115b647759366f836404d4829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eda54fbf-a0c3-484d-a2a5-7a64dd321382'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-vn-18189765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-policy-allow-all-52661155']], 'subnet_ipam': [{'subnet_cidr': '166.59.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 06:46:26,378 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 06:46:26,672 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 06:46:26,700 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2810335-a975-4fde-a4e2-ba9e3783a84b
2025-02-05 06:46:26,712 - DEBUG - Requesting: http://10.0.0.27:8082/project/437ccbb1-15b6-4775-9366-f836404d4829
2025-02-05 06:46:26,782 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,792 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,801 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a8ee2a04-76fa-4156-9941-dd0c575c7c3e
2025-02-05 06:46:26,808 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a8ee2a04-76fa-4156-9941-dd0c575c7c3e
2025-02-05 06:46:26,815 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1b1da91a-75e1-42d5-babb-028e2982b884
2025-02-05 06:46:26,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 06:46:26,821 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,829 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a8ee2a04-76fa-4156-9941-dd0c575c7c3e
2025-02-05 06:46:26,841 - INFO - Verified VN network id 8 for VN 2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,841 - INFO - Verifications in API Server for VN ctest-vn-81066543 passed
2025-02-05 06:46:26,841 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,849 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a8ee2a04-76fa-4156-9941-dd0c575c7c3e
2025-02-05 06:46:26,855 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a8ee2a04-76fa-4156-9941-dd0c575c7c3e
2025-02-05 06:46:26,862 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1b1da91a-75e1-42d5-babb-028e2982b884
2025-02-05 06:46:26,873 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09460084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2344591957255013708', 'uuid-lslong': '9918654860962068730'}, 'enable': 'true', 'created': '2025-02-05T06:46:24', 'last-modified': '2025-02-05T06:46:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910067'}
2025-02-05 06:46:26,880 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 06:46:26,880 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81066543 passed
2025-02-05 06:46:26,880 - DEBUG - ====Verifying policy data for ctest-vn-81066543 in API_Server ======
2025-02-05 06:46:26,880 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 06:46:26,886 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2810335-a975-4fde-a4e2-ba9e3783a84b
2025-02-05 06:46:26,901 - DEBUG - Requesting: http://10.0.0.27:8082/project/437ccbb1-15b6-4775-9366-f836404d4829
2025-02-05 06:46:26,967 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2089a9f6-836c-454c-89a6-240b755878fa
2025-02-05 06:46:26,974 - DEBUG - ==>Verifying data for policy with id: f9a35170-ff2b-429c-add8-64faa87ee1e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-policy-allow-all-52661155']
2025-02-05 06:46:26,974 - INFO - VN ctest-vn-81066543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 06:46:26,974 - DEBUG - Verifying the vn in opserver
2025-02-05 06:46:26,974 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543 virtual network link through opserver 10.0.0.27
2025-02-05 06:46:26,974 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 06:46:27,265 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 06:46:27,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543?flat'}
2025-02-05 06:46:27,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-81066543 is found in opserver
2025-02-05 06:46:27,334 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 06:46:27,340 - DEBUG - VRF ids for VN ctest-vn-81066543: {}
2025-02-05 06:46:27,340 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 06:46:27,347 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2810335-a975-4fde-a4e2-ba9e3783a84b
2025-02-05 06:46:27,359 - DEBUG - Requesting: http://10.0.0.27:8082/project/437ccbb1-15b6-4775-9366-f836404d4829
2025-02-05 06:46:27,429 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,440 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,449 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c16bbe99-e5f7-460b-8d39-65f132486cfb
2025-02-05 06:46:27,456 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c16bbe99-e5f7-460b-8d39-65f132486cfb
2025-02-05 06:46:27,462 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6a7c6985-a37e-49d8-b8c5-1c4c53c876f9
2025-02-05 06:46:27,468 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-05 06:46:27,468 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c16bbe99-e5f7-460b-8d39-65f132486cfb
2025-02-05 06:46:27,488 - INFO - Verified VN network id 9 for VN e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,488 - INFO - Verifications in API Server for VN ctest-vn-18189765 passed
2025-02-05 06:46:27,488 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,497 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c16bbe99-e5f7-460b-8d39-65f132486cfb
2025-02-05 06:46:27,504 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c16bbe99-e5f7-460b-8d39-65f132486cfb
2025-02-05 06:46:27,512 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6a7c6985-a37e-49d8-b8c5-1c4c53c876f9
2025-02-05 06:46:27,525 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-18189765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09460084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16265835110214813598', 'uuid-lslong': '10650176552114672865'}, 'enable': 'true', 'created': '2025-02-05T06:46:25', 'last-modified': '2025-02-05T06:46:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335655'}
2025-02-05 06:46:27,532 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-05 06:46:27,532 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18189765 passed
2025-02-05 06:46:27,532 - DEBUG - ====Verifying policy data for ctest-vn-18189765 in API_Server ======
2025-02-05 06:46:27,532 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-05 06:46:27,538 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2810335-a975-4fde-a4e2-ba9e3783a84b
2025-02-05 06:46:27,548 - DEBUG - Requesting: http://10.0.0.27:8082/project/437ccbb1-15b6-4775-9366-f836404d4829
2025-02-05 06:46:27,616 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1bbdada-476e-479e-93cd-0725a7fd54e1
2025-02-05 06:46:27,624 - DEBUG - ==>Verifying data for policy with id: f9a35170-ff2b-429c-add8-64faa87ee1e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-09460084', 'ctest-policy-allow-all-52661155']
2025-02-05 06:46:27,624 - INFO - VN ctest-vn-18189765 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 06:46:27,624 - DEBUG - Verifying the vn in opserver
2025-02-05 06:46:27,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-18189765 virtual network link through opserver 10.0.0.27
2025-02-05 06:46:27,624 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-05 06:46:27,636 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-18189765', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-18189765?flat'}
2025-02-05 06:46:27,636 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09460084:ctest-vn-18189765 is found in opserver
2025-02-05 06:46:27,646 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 06:46:27,651 - DEBUG - VRF ids for VN ctest-vn-18189765: {}
2025-02-05 06:46:27,704 - DEBUG - Services list from nova: [