2025-02-06 16:55:08,296 - INFO - Domain Default found not creating
2025-02-06 16:55:08,435 - INFO - Project ctest-TestBasicPolicy-95518037 not found, creating it
2025-02-06 16:55:08,882 - INFO - Created Project:ctest-TestBasicPolicy-95518037, ID : 3dcc63c1-9010-4dd0-bd43-55cf6421f365
2025-02-06 16:55:10,410 - INFO - ================================================================================
2025-02-06 16:55:10,411 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 16:55:10,411 - 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-06 16:55:10,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with
2025-02-06 16:55:10,676 - INFO - Initial checks done. Running the testcase now
2025-02-06 16:55:10,676 - INFO -
2025-02-06 16:55:11,275 - DEBUG - Response for create_network : {'network': {'id': 'a713b9d8-b309-4ea5-b70f-045d2ef7b870', 'name': 'ctest-vn-46651416', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'project_id': '3dcc63c190104dd0bd4355cf6421f365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-vn-46651416'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 16:55:11,492 - DEBUG - Response for create_subnet : {'subnet': {'id': '55b50a9c-8fb1-4fc9-90fc-c12d0f9fb3eb', 'name': '', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'network_id': 'a713b9d8-b309-4ea5-b70f-045d2ef7b870', 'ip_version': 4, 'cidr': '95.120.184.64/26', 'allocation_pools': [{'start': '95.120.184.66', 'end': '95.120.184.126'}], 'gateway_ip': '95.120.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.120.184.66', 'tags': [], 'project_id': '3dcc63c190104dd0bd4355cf6421f365'}}
2025-02-06 16:55:11,511 - INFO - Created VN ctest-vn-46651416
2025-02-06 16:55:11,569 - DEBUG - VN ctest-vn-46651416 UUID is a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:11,909 - DEBUG - Response for create_network : {'network': {'id': '67b83c7a-ce60-4755-bab0-e784a6827abd', 'name': 'ctest-vn-07955600', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'project_id': '3dcc63c190104dd0bd4355cf6421f365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-vn-07955600'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 16:55:12,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed72d2e9-2274-410f-9b66-2d11371eb57e', 'name': '', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'network_id': '67b83c7a-ce60-4755-bab0-e784a6827abd', 'ip_version': 4, 'cidr': '36.108.201.192/26', 'allocation_pools': [{'start': '36.108.201.194', 'end': '36.108.201.254'}], 'gateway_ip': '36.108.201.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.108.201.194', 'tags': [], 'project_id': '3dcc63c190104dd0bd4355cf6421f365'}}
2025-02-06 16:55:12,109 - INFO - Created VN ctest-vn-07955600
2025-02-06 16:55:12,161 - DEBUG - VN ctest-vn-07955600 UUID is 67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:12,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416, 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-95518037:ctest-vn-07955600, 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-06 16:55:12,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a713b9d8-b309-4ea5-b70f-045d2ef7b870', 'name': 'ctest-vn-46651416', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'project_id': '3dcc63c190104dd0bd4355cf6421f365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55b50a9c-8fb1-4fc9-90fc-c12d0f9fb3eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-vn-46651416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-policy-allow-all-57129099']], 'subnet_ipam': [{'subnet_cidr': '95.120.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 16:55:12,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67b83c7a-ce60-4755-bab0-e784a6827abd', 'name': 'ctest-vn-07955600', 'tenant_id': '3dcc63c190104dd0bd4355cf6421f365', 'project_id': '3dcc63c190104dd0bd4355cf6421f365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed72d2e9-2274-410f-9b66-2d11371eb57e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-vn-07955600'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-policy-allow-all-57129099']], 'subnet_ipam': [{'subnet_cidr': '36.108.201.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 16:55:13,001 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-06 16:55:13,339 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-06 16:55:13,367 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f683c379-e58c-4ff9-ab53-66ffa179a1ca
2025-02-06 16:55:13,381 - DEBUG - Requesting: http://10.0.0.27:8082/project/3dcc63c1-9010-4dd0-bd43-55cf6421f365
2025-02-06 16:55:13,458 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,470 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,481 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bdeced7a-16ee-4dc1-9f63-d0bcedbdd3b6
2025-02-06 16:55:13,488 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bdeced7a-16ee-4dc1-9f63-d0bcedbdd3b6
2025-02-06 16:55:13,495 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1e76ce81-5f34-45f7-8e83-e4581666fad9
2025-02-06 16:55:13,501 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 16:55:13,501 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,510 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bdeced7a-16ee-4dc1-9f63-d0bcedbdd3b6
2025-02-06 16:55:13,524 - INFO - Verified VN network id 8 for VN a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,524 - INFO - Verifications in API Server for VN ctest-vn-46651416 passed
2025-02-06 16:55:13,524 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,534 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bdeced7a-16ee-4dc1-9f63-d0bcedbdd3b6
2025-02-06 16:55:13,541 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bdeced7a-16ee-4dc1-9f63-d0bcedbdd3b6
2025-02-06 16:55:13,548 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1e76ce81-5f34-45f7-8e83-e4581666fad9
2025-02-06 16:55:13,561 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95518037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12039170569259273893', 'uuid-lslong': '13190766631857928304'}, 'enable': 'true', 'created': '2025-02-06T16:55:11', 'last-modified': '2025-02-06T16:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001050'}
2025-02-06 16:55:13,567 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 16:55:13,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46651416 passed
2025-02-06 16:55:13,570 - DEBUG - ====Verifying policy data for ctest-vn-46651416 in API_Server ======
2025-02-06 16:55:13,570 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-06 16:55:13,576 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f683c379-e58c-4ff9-ab53-66ffa179a1ca
2025-02-06 16:55:13,588 - DEBUG - Requesting: http://10.0.0.27:8082/project/3dcc63c1-9010-4dd0-bd43-55cf6421f365
2025-02-06 16:55:13,667 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a713b9d8-b309-4ea5-b70f-045d2ef7b870
2025-02-06 16:55:13,678 - DEBUG - ==>Verifying data for policy with id: 4d8ee0b9-c572-45dc-b1f4-99f5879b573b, fqn: ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-policy-allow-all-57129099']
2025-02-06 16:55:13,678 - INFO - VN ctest-vn-46651416 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 16:55:13,678 - DEBUG - Verifying the vn in opserver
2025-02-06 16:55:13,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416 virtual network link through opserver 10.0.0.27
2025-02-06 16:55:13,678 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-06 16:55:14,010 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-06 16:55:14,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416?flat'}
2025-02-06 16:55:14,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-46651416 is found in opserver
2025-02-06 16:55:14,079 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 16:55:14,085 - DEBUG - VRF ids for VN ctest-vn-46651416: {}
2025-02-06 16:55:14,085 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-06 16:55:14,091 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f683c379-e58c-4ff9-ab53-66ffa179a1ca
2025-02-06 16:55:14,105 - DEBUG - Requesting: http://10.0.0.27:8082/project/3dcc63c1-9010-4dd0-bd43-55cf6421f365
2025-02-06 16:55:14,176 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,189 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,199 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/79dde617-32f3-43a4-bcb1-2115849056aa
2025-02-06 16:55:14,207 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/79dde617-32f3-43a4-bcb1-2115849056aa
2025-02-06 16:55:14,214 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5055e7f9-fcc0-44ed-91a5-23cc6d56ba80
2025-02-06 16:55:14,220 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 16:55:14,220 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,230 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/79dde617-32f3-43a4-bcb1-2115849056aa
2025-02-06 16:55:14,247 - INFO - Verified VN network id 9 for VN 67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,247 - INFO - Verifications in API Server for VN ctest-vn-07955600 passed
2025-02-06 16:55:14,247 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,257 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/79dde617-32f3-43a4-bcb1-2115849056aa
2025-02-06 16:55:14,265 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/79dde617-32f3-43a4-bcb1-2115849056aa
2025-02-06 16:55:14,273 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5055e7f9-fcc0-44ed-91a5-23cc6d56ba80
2025-02-06 16:55:14,287 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-07955600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95518037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7473790079767430997', 'uuid-lslong': '13452506643870939837'}, 'enable': 'true', 'created': '2025-02-06T16:55:11', 'last-modified': '2025-02-06T16:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476742'}
2025-02-06 16:55:14,293 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 16:55:14,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07955600 passed
2025-02-06 16:55:14,294 - DEBUG - ====Verifying policy data for ctest-vn-07955600 in API_Server ======
2025-02-06 16:55:14,294 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-06 16:55:14,299 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f683c379-e58c-4ff9-ab53-66ffa179a1ca
2025-02-06 16:55:14,311 - DEBUG - Requesting: http://10.0.0.27:8082/project/3dcc63c1-9010-4dd0-bd43-55cf6421f365
2025-02-06 16:55:14,394 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/67b83c7a-ce60-4755-bab0-e784a6827abd
2025-02-06 16:55:14,405 - DEBUG - ==>Verifying data for policy with id: 4d8ee0b9-c572-45dc-b1f4-99f5879b573b, fqn: ['default-domain', 'ctest-TestBasicPolicy-95518037', 'ctest-policy-allow-all-57129099']
2025-02-06 16:55:14,406 - INFO - VN ctest-vn-07955600 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 16:55:14,406 - DEBUG - Verifying the vn in opserver
2025-02-06 16:55:14,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-07955600 virtual network link through opserver 10.0.0.27
2025-02-06 16:55:14,406 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-06 16:55:14,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-07955600', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-07955600?flat'}
2025-02-06 16:55:14,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95518037:ctest-vn-07955600 is found in opserver
2025-02-06 16:55:14,429 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 16:55:14,435 - DEBUG - VRF ids for VN ctest-vn-07955600: {}
2025-02-06 16:55:14,491 - DEBUG - Services list from nova: [