2025-04-17 02:28:22,916 - INFO - Domain Default found not creating
2025-04-17 02:28:23,079 - INFO - Project ctest-TestBasicPolicy-76383122 not found, creating it
2025-04-17 02:28:23,579 - INFO - Created Project:ctest-TestBasicPolicy-76383122, ID : c36df768-82da-4098-b68c-a9f523dd2a0a
2025-04-17 02:28:25,002 - INFO - ================================================================================
2025-04-17 02:28:25,002 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-17 02:28:25,003 - 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-17 02:28:25,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.25': '0'}} with
2025-04-17 02:28:25,256 - INFO - Initial checks done. Running the testcase now
2025-04-17 02:28:25,256 - INFO -
2025-04-17 02:28:25,788 - DEBUG - Response for create_network : {'network': {'id': '44ae14ee-8f86-4dae-bcbf-36c70f506aec', 'name': 'ctest-vn-64460950', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'project_id': 'c36df76882da4098b68ca9f523dd2a0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-vn-64460950'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:28:25,997 - DEBUG - Response for create_subnet : {'subnet': {'id': '946fa49d-95c5-471b-8827-7c49327137d5', 'name': '', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'network_id': '44ae14ee-8f86-4dae-bcbf-36c70f506aec', 'ip_version': 4, 'cidr': '143.222.215.192/26', 'allocation_pools': [{'start': '143.222.215.194', 'end': '143.222.215.254'}], 'gateway_ip': '143.222.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.222.215.194', 'tags': [], 'project_id': 'c36df76882da4098b68ca9f523dd2a0a'}}
2025-04-17 02:28:26,013 - INFO - Created VN ctest-vn-64460950
2025-04-17 02:28:26,069 - DEBUG - VN ctest-vn-64460950 UUID is 44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:26,384 - DEBUG - Response for create_network : {'network': {'id': '6e03a2e7-4651-46fe-9f80-e3f4aa16fe84', 'name': 'ctest-vn-45988483', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'project_id': 'c36df76882da4098b68ca9f523dd2a0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-vn-45988483'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:28:26,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd15b1357-627e-48a4-bc59-71d6d93c22cf', 'name': '', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'network_id': '6e03a2e7-4651-46fe-9f80-e3f4aa16fe84', 'ip_version': 4, 'cidr': '88.159.43.192/26', 'allocation_pools': [{'start': '88.159.43.194', 'end': '88.159.43.254'}], 'gateway_ip': '88.159.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.159.43.194', 'tags': [], 'project_id': 'c36df76882da4098b68ca9f523dd2a0a'}}
2025-04-17 02:28:26,567 - INFO - Created VN ctest-vn-45988483
2025-04-17 02:28:26,617 - DEBUG - VN ctest-vn-45988483 UUID is 6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:26,765 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950, 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-76383122:ctest-vn-45988483, 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-17 02:28:27,059 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44ae14ee-8f86-4dae-bcbf-36c70f506aec', 'name': 'ctest-vn-64460950', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'project_id': 'c36df76882da4098b68ca9f523dd2a0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['946fa49d-95c5-471b-8827-7c49327137d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-vn-64460950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-policy-allow-all-44538627']], 'subnet_ipam': [{'subnet_cidr': '143.222.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:28:27,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e03a2e7-4651-46fe-9f80-e3f4aa16fe84', 'name': 'ctest-vn-45988483', 'tenant_id': 'c36df76882da4098b68ca9f523dd2a0a', 'project_id': 'c36df76882da4098b68ca9f523dd2a0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d15b1357-627e-48a4-bc59-71d6d93c22cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-vn-45988483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-policy-allow-all-44538627']], 'subnet_ipam': [{'subnet_cidr': '88.159.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:28:27,497 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-17 02:28:27,796 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-17 02:28:27,822 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2f062dde-ab10-4df9-9982-bea0b7a691cd
2025-04-17 02:28:27,834 - DEBUG - Requesting: http://10.0.0.27:8082/project/c36df768-82da-4098-b68c-a9f523dd2a0a
2025-04-17 02:28:27,904 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:27,914 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:27,923 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ba8ba0be-7aac-4b8b-a8a8-2cf1e7d2caa1
2025-04-17 02:28:27,930 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ba8ba0be-7aac-4b8b-a8a8-2cf1e7d2caa1
2025-04-17 02:28:27,936 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2c109ae3-cdc8-49c1-9310-2bf123902c27
2025-04-17 02:28:27,942 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 02:28:27,943 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:27,951 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ba8ba0be-7aac-4b8b-a8a8-2cf1e7d2caa1
2025-04-17 02:28:27,963 - INFO - Verified VN network id 9 for VN 44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:27,963 - INFO - Verifications in API Server for VN ctest-vn-64460950 passed
2025-04-17 02:28:27,963 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:27,972 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ba8ba0be-7aac-4b8b-a8a8-2cf1e7d2caa1
2025-04-17 02:28:27,979 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ba8ba0be-7aac-4b8b-a8a8-2cf1e7d2caa1
2025-04-17 02:28:27,985 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2c109ae3-cdc8-49c1-9310-2bf123902c27
2025-04-17 02:28:27,996 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76383122', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4948916055369469358', 'uuid-lslong': '13600649628265507564'}, 'enable': 'true', 'created': '2025-04-17T02:28:25', 'last-modified': '2025-04-17T02:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961908'}
2025-04-17 02:28:28,002 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 02:28:28,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64460950 passed
2025-04-17 02:28:28,002 - DEBUG - ====Verifying policy data for ctest-vn-64460950 in API_Server ======
2025-04-17 02:28:28,002 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-17 02:28:28,008 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2f062dde-ab10-4df9-9982-bea0b7a691cd
2025-04-17 02:28:28,019 - DEBUG - Requesting: http://10.0.0.27:8082/project/c36df768-82da-4098-b68c-a9f523dd2a0a
2025-04-17 02:28:28,091 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/44ae14ee-8f86-4dae-bcbf-36c70f506aec
2025-04-17 02:28:28,101 - DEBUG - ==>Verifying data for policy with id: b5199f03-4a58-48bc-948a-558058d13c8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-policy-allow-all-44538627']
2025-04-17 02:28:28,101 - INFO - VN ctest-vn-64460950 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 02:28:28,101 - DEBUG - Verifying the vn in opserver
2025-04-17 02:28:28,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950 virtual network link through opserver 10.0.0.27
2025-04-17 02:28:28,101 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-17 02:28:28,395 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-17 02:28:28,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950?flat'}
2025-04-17 02:28:28,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-64460950 is found in opserver
2025-04-17 02:28:28,455 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 02:28:28,460 - DEBUG - VRF ids for VN ctest-vn-64460950: {}
2025-04-17 02:28:28,460 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-17 02:28:28,466 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2f062dde-ab10-4df9-9982-bea0b7a691cd
2025-04-17 02:28:28,477 - DEBUG - Requesting: http://10.0.0.27:8082/project/c36df768-82da-4098-b68c-a9f523dd2a0a
2025-04-17 02:28:28,549 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,561 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,570 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/032412e7-ba6b-49e4-a623-87eb2d21ce7b
2025-04-17 02:28:28,577 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/032412e7-ba6b-49e4-a623-87eb2d21ce7b
2025-04-17 02:28:28,583 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0273dde1-f106-4dbb-9b20-6a86280a6e59
2025-04-17 02:28:28,589 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 02:28:28,589 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,597 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/032412e7-ba6b-49e4-a623-87eb2d21ce7b
2025-04-17 02:28:28,609 - INFO - Verified VN network id 10 for VN 6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,610 - INFO - Verifications in API Server for VN ctest-vn-45988483 passed
2025-04-17 02:28:28,610 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,618 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/032412e7-ba6b-49e4-a623-87eb2d21ce7b
2025-04-17 02:28:28,625 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/032412e7-ba6b-49e4-a623-87eb2d21ce7b
2025-04-17 02:28:28,631 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0273dde1-f106-4dbb-9b20-6a86280a6e59
2025-04-17 02:28:28,643 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-45988483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76383122', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7927358883303081726', 'uuid-lslong': '11493436889014664836'}, 'enable': 'true', 'created': '2025-04-17T02:28:26', 'last-modified': '2025-04-17T02:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377371'}
2025-04-17 02:28:28,649 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 02:28:28,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45988483 passed
2025-04-17 02:28:28,649 - DEBUG - ====Verifying policy data for ctest-vn-45988483 in API_Server ======
2025-04-17 02:28:28,649 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-17 02:28:28,654 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2f062dde-ab10-4df9-9982-bea0b7a691cd
2025-04-17 02:28:28,666 - DEBUG - Requesting: http://10.0.0.27:8082/project/c36df768-82da-4098-b68c-a9f523dd2a0a
2025-04-17 02:28:28,741 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e03a2e7-4651-46fe-9f80-e3f4aa16fe84
2025-04-17 02:28:28,751 - DEBUG - ==>Verifying data for policy with id: b5199f03-4a58-48bc-948a-558058d13c8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-76383122', 'ctest-policy-allow-all-44538627']
2025-04-17 02:28:28,751 - INFO - VN ctest-vn-45988483 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 02:28:28,751 - DEBUG - Verifying the vn in opserver
2025-04-17 02:28:28,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-45988483 virtual network link through opserver 10.0.0.27
2025-04-17 02:28:28,751 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-17 02:28:28,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-45988483', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-45988483?flat'}
2025-04-17 02:28:28,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76383122:ctest-vn-45988483 is found in opserver
2025-04-17 02:28:28,775 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 02:28:28,781 - DEBUG - VRF ids for VN ctest-vn-45988483: {}
2025-04-17 02:28:28,834 - DEBUG - Services list from nova: [