2025-02-12 05:32:28,966 - INFO - Domain Default found not creating
2025-02-12 05:32:29,126 - INFO - Project ctest-TestBasicPolicy-39213101 not found, creating it
2025-02-12 05:32:29,596 - INFO - Created Project:ctest-TestBasicPolicy-39213101, ID : f669787b-27f1-4c89-a9bd-f60a1a51926d
2025-02-12 05:32:31,187 - INFO - ================================================================================
2025-02-12 05:32:31,187 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-12 05:32:31,187 - 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-12 05:32:31,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.8': '0'}} with
2025-02-12 05:32:31,441 - INFO - Initial checks done. Running the testcase now
2025-02-12 05:32:31,441 - INFO -
2025-02-12 05:32:32,042 - DEBUG - Response for create_network : {'network': {'id': 'c31526f6-071f-4cb2-9b0c-adc406a36089', 'name': 'ctest-vn-66643124', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'project_id': 'f669787b27f14c89a9bdf60a1a51926d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-vn-66643124'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 05:32:32,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0502c2a-aabc-4750-82b7-979caa8f6321', 'name': '', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'network_id': 'c31526f6-071f-4cb2-9b0c-adc406a36089', 'ip_version': 4, 'cidr': '161.25.30.128/26', 'allocation_pools': [{'start': '161.25.30.130', 'end': '161.25.30.190'}], 'gateway_ip': '161.25.30.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.25.30.130', 'tags': [], 'project_id': 'f669787b27f14c89a9bdf60a1a51926d'}}
2025-02-12 05:32:32,250 - INFO - Created VN ctest-vn-66643124
2025-02-12 05:32:32,306 - DEBUG - VN ctest-vn-66643124 UUID is c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:32,613 - DEBUG - Response for create_network : {'network': {'id': '4b45c8e0-4a9a-471e-8a2c-393e26ed1203', 'name': 'ctest-vn-43418005', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'project_id': 'f669787b27f14c89a9bdf60a1a51926d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-vn-43418005'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 05:32:32,824 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c10ab470-27b4-4dab-a7aa-778b9670b95b', 'name': '', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'network_id': '4b45c8e0-4a9a-471e-8a2c-393e26ed1203', 'ip_version': 4, 'cidr': '109.152.21.128/26', 'allocation_pools': [{'start': '109.152.21.130', 'end': '109.152.21.190'}], 'gateway_ip': '109.152.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.152.21.130', 'tags': [], 'project_id': 'f669787b27f14c89a9bdf60a1a51926d'}}
2025-02-12 05:32:32,844 - INFO - Created VN ctest-vn-43418005
2025-02-12 05:32:32,898 - DEBUG - VN ctest-vn-43418005 UUID is 4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:33,011 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124, 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-39213101:ctest-vn-43418005, 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-12 05:32:33,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c31526f6-071f-4cb2-9b0c-adc406a36089', 'name': 'ctest-vn-66643124', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'project_id': 'f669787b27f14c89a9bdf60a1a51926d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0502c2a-aabc-4750-82b7-979caa8f6321'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-vn-66643124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-policy-allow-all-05721627']], 'subnet_ipam': [{'subnet_cidr': '161.25.30.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 05:32:33,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b45c8e0-4a9a-471e-8a2c-393e26ed1203', 'name': 'ctest-vn-43418005', 'tenant_id': 'f669787b27f14c89a9bdf60a1a51926d', 'project_id': 'f669787b27f14c89a9bdf60a1a51926d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c10ab470-27b4-4dab-a7aa-778b9670b95b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-vn-43418005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-policy-allow-all-05721627']], 'subnet_ipam': [{'subnet_cidr': '109.152.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 05:32:33,750 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-12 05:32:34,098 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-12 05:32:34,133 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cbd7546b-e44e-45d3-b493-3357ad78c2a5
2025-02-12 05:32:34,157 - DEBUG - Requesting: http://10.0.0.27:8082/project/f669787b-27f1-4c89-a9bd-f60a1a51926d
2025-02-12 05:32:34,240 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,253 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,263 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3fba4ad-7517-47f1-aff3-9bc100a3dd90
2025-02-12 05:32:34,272 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3fba4ad-7517-47f1-aff3-9bc100a3dd90
2025-02-12 05:32:34,279 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c9b337ab-e7b8-41c8-882e-c1d2092633f2
2025-02-12 05:32:34,286 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 05:32:34,286 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,296 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3fba4ad-7517-47f1-aff3-9bc100a3dd90
2025-02-12 05:32:34,310 - INFO - Verified VN network id 8 for VN c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,311 - INFO - Verifications in API Server for VN ctest-vn-66643124 passed
2025-02-12 05:32:34,311 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,321 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3fba4ad-7517-47f1-aff3-9bc100a3dd90
2025-02-12 05:32:34,328 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3fba4ad-7517-47f1-aff3-9bc100a3dd90
2025-02-12 05:32:34,336 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c9b337ab-e7b8-41c8-882e-c1d2092633f2
2025-02-12 05:32:34,350 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39213101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14057184650030173362', 'uuid-lslong': '11172495833035923593'}, 'enable': 'true', 'created': '2025-02-12T05:32:32', 'last-modified': '2025-02-12T05:32:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053549'}
2025-02-12 05:32:34,357 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 05:32:34,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66643124 passed
2025-02-12 05:32:34,357 - DEBUG - ====Verifying policy data for ctest-vn-66643124 in API_Server ======
2025-02-12 05:32:34,358 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-12 05:32:34,364 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cbd7546b-e44e-45d3-b493-3357ad78c2a5
2025-02-12 05:32:34,377 - DEBUG - Requesting: http://10.0.0.27:8082/project/f669787b-27f1-4c89-a9bd-f60a1a51926d
2025-02-12 05:32:34,462 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c31526f6-071f-4cb2-9b0c-adc406a36089
2025-02-12 05:32:34,474 - DEBUG - ==>Verifying data for policy with id: 5531bd24-9a4b-4971-986c-78e630ac6671, fqn: ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-policy-allow-all-05721627']
2025-02-12 05:32:34,474 - INFO - VN ctest-vn-66643124 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 05:32:34,474 - DEBUG - Verifying the vn in opserver
2025-02-12 05:32:34,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124 virtual network link through opserver 10.0.0.27
2025-02-12 05:32:34,474 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-12 05:32:34,809 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-12 05:32:34,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124?flat'}
2025-02-12 05:32:34,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-66643124 is found in opserver
2025-02-12 05:32:34,886 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 05:32:34,894 - DEBUG - VRF ids for VN ctest-vn-66643124: {}
2025-02-12 05:32:34,894 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-12 05:32:34,900 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cbd7546b-e44e-45d3-b493-3357ad78c2a5
2025-02-12 05:32:34,913 - DEBUG - Requesting: http://10.0.0.27:8082/project/f669787b-27f1-4c89-a9bd-f60a1a51926d
2025-02-12 05:32:34,993 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,008 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,020 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/938ec7b8-ef63-4a36-9d9a-a8bc656093ca
2025-02-12 05:32:35,029 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/938ec7b8-ef63-4a36-9d9a-a8bc656093ca
2025-02-12 05:32:35,037 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d82308d9-0328-4bd9-80da-ce825b389dde
2025-02-12 05:32:35,045 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 05:32:35,045 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,056 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/938ec7b8-ef63-4a36-9d9a-a8bc656093ca
2025-02-12 05:32:35,074 - INFO - Verified VN network id 9 for VN 4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,074 - INFO - Verifications in API Server for VN ctest-vn-43418005 passed
2025-02-12 05:32:35,074 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,089 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/938ec7b8-ef63-4a36-9d9a-a8bc656093ca
2025-02-12 05:32:35,100 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/938ec7b8-ef63-4a36-9d9a-a8bc656093ca
2025-02-12 05:32:35,110 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d82308d9-0328-4bd9-80da-ce825b389dde
2025-02-12 05:32:35,129 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-43418005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39213101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5423962191887484702', 'uuid-lslong': '9956395815313150467'}, 'enable': 'true', 'created': '2025-02-12T05:32:32', 'last-modified': '2025-02-12T05:32:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554399'}
2025-02-12 05:32:35,140 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 05:32:35,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43418005 passed
2025-02-12 05:32:35,140 - DEBUG - ====Verifying policy data for ctest-vn-43418005 in API_Server ======
2025-02-12 05:32:35,140 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-02-12 05:32:35,149 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cbd7546b-e44e-45d3-b493-3357ad78c2a5
2025-02-12 05:32:35,163 - DEBUG - Requesting: http://10.0.0.27:8082/project/f669787b-27f1-4c89-a9bd-f60a1a51926d
2025-02-12 05:32:35,247 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b45c8e0-4a9a-471e-8a2c-393e26ed1203
2025-02-12 05:32:35,262 - DEBUG - ==>Verifying data for policy with id: 5531bd24-9a4b-4971-986c-78e630ac6671, fqn: ['default-domain', 'ctest-TestBasicPolicy-39213101', 'ctest-policy-allow-all-05721627']
2025-02-12 05:32:35,262 - INFO - VN ctest-vn-43418005 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 05:32:35,262 - DEBUG - Verifying the vn in opserver
2025-02-12 05:32:35,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-43418005 virtual network link through opserver 10.0.0.27
2025-02-12 05:32:35,262 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-02-12 05:32:35,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-43418005', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-43418005?flat'}
2025-02-12 05:32:35,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39213101:ctest-vn-43418005 is found in opserver
2025-02-12 05:32:35,291 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 05:32:35,298 - DEBUG - VRF ids for VN ctest-vn-43418005: {}
2025-02-12 05:32:35,367 - DEBUG - Services list from nova: [