2025-01-30 17:10:50,895 - INFO - Domain Default found not creating
2025-01-30 17:10:51,066 - INFO - Project ctest-TestBasicPolicy-63661305 not found, creating it
2025-01-30 17:10:51,533 - INFO - Created Project:ctest-TestBasicPolicy-63661305, ID : c70f34ca-bd8b-4b9e-b29d-1c220da595e6
2025-01-30 17:10:53,004 - INFO - ================================================================================
2025-01-30 17:10:53,005 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-30 17:10:53,005 - 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-30 17:10:53,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with
2025-01-30 17:10:53,258 - INFO - Initial checks done. Running the testcase now
2025-01-30 17:10:53,258 - INFO -
2025-01-30 17:10:53,825 - DEBUG - Response for create_network : {'network': {'id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'name': 'ctest-vn-58447122', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-58447122'], 'port_security_enabled': True, 'description': ''}}
2025-01-30 17:10:54,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b320f662-0bea-4de9-b5f9-3547d355d521', 'name': '', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'network_id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'ip_version': 4, 'cidr': '58.35.24.0/26', 'allocation_pools': [{'start': '58.35.24.2', 'end': '58.35.24.62'}], 'gateway_ip': '58.35.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.35.24.2', 'tags': [], 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6'}}
2025-01-30 17:10:54,070 - INFO - Created VN ctest-vn-58447122
2025-01-30 17:10:54,124 - DEBUG - VN ctest-vn-58447122 UUID is c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:54,433 - DEBUG - Response for create_network : {'network': {'id': '958c96be-a46f-4112-a31e-9af1090e1314', 'name': 'ctest-vn-92667310', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-92667310'], 'port_security_enabled': True, 'description': ''}}
2025-01-30 17:10:54,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '7af0b5ad-fdd6-483a-8bb0-e59e07a6924f', 'name': '', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'network_id': '958c96be-a46f-4112-a31e-9af1090e1314', 'ip_version': 4, 'cidr': '42.225.193.64/26', 'allocation_pools': [{'start': '42.225.193.66', 'end': '42.225.193.126'}], 'gateway_ip': '42.225.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.225.193.66', 'tags': [], 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6'}}
2025-01-30 17:10:54,639 - INFO - Created VN ctest-vn-92667310
2025-01-30 17:10:54,692 - DEBUG - VN ctest-vn-92667310 UUID is 958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:54,820 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122, 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-63661305:ctest-vn-92667310, 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-30 17:10:55,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'name': 'ctest-vn-58447122', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b320f662-0bea-4de9-b5f9-3547d355d521'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-58447122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']], 'subnet_ipam': [{'subnet_cidr': '58.35.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-30 17:10:55,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '958c96be-a46f-4112-a31e-9af1090e1314', 'name': 'ctest-vn-92667310', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7af0b5ad-fdd6-483a-8bb0-e59e07a6924f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-92667310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']], 'subnet_ipam': [{'subnet_cidr': '42.225.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-30 17:10:55,584 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-30 17:10:55,884 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-30 17:10:55,915 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db
2025-01-30 17:10:55,929 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6
2025-01-30 17:10:56,009 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,026 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,039 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb
2025-01-30 17:10:56,049 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb
2025-01-30 17:10:56,058 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/506a3a2e-9039-4fcf-9c41-b807fe5bb40d
2025-01-30 17:10:56,066 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-30 17:10:56,066 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,076 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb
2025-01-30 17:10:56,092 - INFO - Verified VN network id 8 for VN c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,092 - INFO - Verifications in API Server for VN ctest-vn-58447122 passed
2025-01-30 17:10:56,092 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,104 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb
2025-01-30 17:10:56,112 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb
2025-01-30 17:10:56,120 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/506a3a2e-9039-4fcf-9c41-b807fe5bb40d
2025-01-30 17:10:56,135 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63661305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14117473688729765857', 'uuid-lslong': '13296288298196706548'}, 'enable': 'true', 'created': '2025-01-30T17:10:53', 'last-modified': '2025-01-30T17:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029984'}
2025-01-30 17:10:56,142 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-30 17:10:56,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58447122 passed
2025-01-30 17:10:56,142 - DEBUG - ====Verifying policy data for ctest-vn-58447122 in API_Server ======
2025-01-30 17:10:56,142 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-30 17:10:56,148 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db
2025-01-30 17:10:56,161 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6
2025-01-30 17:10:56,236 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4
2025-01-30 17:10:56,247 - DEBUG - ==>Verifying data for policy with id: 44754741-3ef5-4430-b2df-720ee1f7dec8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']
2025-01-30 17:10:56,247 - INFO - VN ctest-vn-58447122 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-30 17:10:56,247 - DEBUG - Verifying the vn in opserver
2025-01-30 17:10:56,247 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122 virtual network link through opserver 10.0.0.12
2025-01-30 17:10:56,247 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-30 17:10:56,541 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-30 17:10:56,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122?flat'}
2025-01-30 17:10:56,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122 is found in opserver
2025-01-30 17:10:56,620 - DEBUG - Do not have enough data to verify VN in agent
2025-01-30 17:10:56,627 - DEBUG - VRF ids for VN ctest-vn-58447122: {}
2025-01-30 17:10:56,627 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-30 17:10:56,634 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db
2025-01-30 17:10:56,647 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6
2025-01-30 17:10:56,727 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,745 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,759 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532
2025-01-30 17:10:56,769 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532
2025-01-30 17:10:56,779 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aac9de55-a782-4991-b5ec-f81157bf7a96
2025-01-30 17:10:56,789 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-30 17:10:56,790 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,803 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532
2025-01-30 17:10:56,823 - INFO - Verified VN network id 9 for VN 958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,823 - INFO - Verifications in API Server for VN ctest-vn-92667310 passed
2025-01-30 17:10:56,823 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,839 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532
2025-01-30 17:10:56,851 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532
2025-01-30 17:10:56,861 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aac9de55-a782-4991-b5ec-f81157bf7a96
2025-01-30 17:10:56,879 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63661305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10776153753937461522', 'uuid-lslong': '11754002437513286420'}, 'enable': 'true', 'created': '2025-01-30T17:10:54', 'last-modified': '2025-01-30T17:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518803'}
2025-01-30 17:10:56,888 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-30 17:10:56,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92667310 passed
2025-01-30 17:10:56,889 - DEBUG - ====Verifying policy data for ctest-vn-92667310 in API_Server ======
2025-01-30 17:10:56,889 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-30 17:10:56,897 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db
2025-01-30 17:10:56,911 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6
2025-01-30 17:10:56,986 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314
2025-01-30 17:10:56,998 - DEBUG - ==>Verifying data for policy with id: 44754741-3ef5-4430-b2df-720ee1f7dec8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']
2025-01-30 17:10:56,998 - INFO - VN ctest-vn-92667310 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-30 17:10:56,998 - DEBUG - Verifying the vn in opserver
2025-01-30 17:10:56,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310 virtual network link through opserver 10.0.0.12
2025-01-30 17:10:56,998 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-30 17:10:57,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310?flat'}
2025-01-30 17:10:57,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310 is found in opserver
2025-01-30 17:10:57,024 - DEBUG - Do not have enough data to verify VN in agent
2025-01-30 17:10:57,029 - DEBUG - VRF ids for VN ctest-vn-92667310: {}
2025-01-30 17:10:57,104 - DEBUG - Services list from nova: [