2025-04-15 01:26:22,741 - INFO - Domain Default found not creating
2025-04-15 01:26:22,916 - INFO - Project ctest-TestBasicPolicy-96685955 not found, creating it
2025-04-15 01:26:23,399 - INFO - Created Project:ctest-TestBasicPolicy-96685955, ID : 9fe1c98d-95a3-4755-a380-da88a308e607
2025-04-15 01:26:25,057 - INFO - ================================================================================
2025-04-15 01:26:25,057 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 01:26:25,057 - 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-15 01:26:25,320 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-15 01:26:25,320 - INFO - Initial checks done. Running the testcase now
2025-04-15 01:26:25,320 - INFO -
2025-04-15 01:26:25,931 - DEBUG - Response for create_network : {'network': {'id': '471ee76c-d52c-4313-8db1-6607c27bf4fc', 'name': 'ctest-vn-25108054', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'project_id': '9fe1c98d95a34755a380da88a308e607', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-vn-25108054'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 01:26:26,119 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9809ef0-bf6e-487b-89c9-77538a16003e', 'name': '', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'network_id': '471ee76c-d52c-4313-8db1-6607c27bf4fc', 'ip_version': 4, 'cidr': '140.243.252.128/26', 'allocation_pools': [{'start': '140.243.252.130', 'end': '140.243.252.190'}], 'gateway_ip': '140.243.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.243.252.130', 'tags': [], 'project_id': '9fe1c98d95a34755a380da88a308e607'}}
2025-04-15 01:26:26,141 - INFO - Created VN ctest-vn-25108054
2025-04-15 01:26:26,193 - DEBUG - VN ctest-vn-25108054 UUID is 471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:26,522 - DEBUG - Response for create_network : {'network': {'id': 'dc6b7c66-2a1d-4077-a819-406951212fec', 'name': 'ctest-vn-30990183', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'project_id': '9fe1c98d95a34755a380da88a308e607', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-vn-30990183'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 01:26:26,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b545c73-6402-48f9-9df1-7e2423a05b8a', 'name': '', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'network_id': 'dc6b7c66-2a1d-4077-a819-406951212fec', 'ip_version': 4, 'cidr': '132.248.121.0/26', 'allocation_pools': [{'start': '132.248.121.2', 'end': '132.248.121.62'}], 'gateway_ip': '132.248.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.248.121.2', 'tags': [], 'project_id': '9fe1c98d95a34755a380da88a308e607'}}
2025-04-15 01:26:26,736 - INFO - Created VN ctest-vn-30990183
2025-04-15 01:26:26,789 - DEBUG - VN ctest-vn-30990183 UUID is dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:26,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054, 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-96685955:ctest-vn-30990183, 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-15 01:26:27,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '471ee76c-d52c-4313-8db1-6607c27bf4fc', 'name': 'ctest-vn-25108054', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'project_id': '9fe1c98d95a34755a380da88a308e607', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9809ef0-bf6e-487b-89c9-77538a16003e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-vn-25108054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-policy-allow-all-14896969']], 'subnet_ipam': [{'subnet_cidr': '140.243.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 01:26:27,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc6b7c66-2a1d-4077-a819-406951212fec', 'name': 'ctest-vn-30990183', 'tenant_id': '9fe1c98d95a34755a380da88a308e607', 'project_id': '9fe1c98d95a34755a380da88a308e607', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b545c73-6402-48f9-9df1-7e2423a05b8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-vn-30990183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-policy-allow-all-14896969']], 'subnet_ipam': [{'subnet_cidr': '132.248.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 01:26:27,665 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 01:26:28,022 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 01:26:28,056 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3769422b-0085-48da-9146-f0fc415d5401
2025-04-15 01:26:28,071 - DEBUG - Requesting: http://10.0.0.65:8082/project/9fe1c98d-95a3-4755-a380-da88a308e607
2025-04-15 01:26:28,145 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,157 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,166 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/170683f6-d432-400f-8d0f-2abdf0217a05
2025-04-15 01:26:28,174 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/170683f6-d432-400f-8d0f-2abdf0217a05
2025-04-15 01:26:28,182 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/cefa0352-33f3-440e-888a-1eb6440d2650
2025-04-15 01:26:28,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 01:26:28,189 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,198 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/170683f6-d432-400f-8d0f-2abdf0217a05
2025-04-15 01:26:28,214 - INFO - Verified VN network id 8 for VN 471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,214 - INFO - Verifications in API Server for VN ctest-vn-25108054 passed
2025-04-15 01:26:28,214 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,225 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/170683f6-d432-400f-8d0f-2abdf0217a05
2025-04-15 01:26:28,234 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/170683f6-d432-400f-8d0f-2abdf0217a05
2025-04-15 01:26:28,243 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/cefa0352-33f3-440e-888a-1eb6440d2650
2025-04-15 01:26:28,258 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96685955', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5124787880613135123', 'uuid-lslong': '10210054013739332860'}, 'enable': 'true', 'created': '2025-04-15T01:26:25', 'last-modified': '2025-04-15T01:26:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058366'}
2025-04-15 01:26:28,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 01:26:28,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25108054 passed
2025-04-15 01:26:28,266 - DEBUG - ====Verifying policy data for ctest-vn-25108054 in API_Server ======
2025-04-15 01:26:28,266 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 01:26:28,273 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3769422b-0085-48da-9146-f0fc415d5401
2025-04-15 01:26:28,289 - DEBUG - Requesting: http://10.0.0.65:8082/project/9fe1c98d-95a3-4755-a380-da88a308e607
2025-04-15 01:26:28,362 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/471ee76c-d52c-4313-8db1-6607c27bf4fc
2025-04-15 01:26:28,373 - DEBUG - ==>Verifying data for policy with id: 36733357-0777-40b0-b6ff-0ed55c68b956, fqn: ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-policy-allow-all-14896969']
2025-04-15 01:26:28,373 - INFO - VN ctest-vn-25108054 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 01:26:28,373 - DEBUG - Verifying the vn in opserver
2025-04-15 01:26:28,373 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054 virtual network link through opserver 10.0.0.65
2025-04-15 01:26:28,373 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 01:26:28,713 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 01:26:28,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054?flat'}
2025-04-15 01:26:28,774 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-25108054 is found in opserver
2025-04-15 01:26:28,786 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 01:26:28,792 - DEBUG - VRF ids for VN ctest-vn-25108054: {}
2025-04-15 01:26:28,792 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 01:26:28,799 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3769422b-0085-48da-9146-f0fc415d5401
2025-04-15 01:26:28,814 - DEBUG - Requesting: http://10.0.0.65:8082/project/9fe1c98d-95a3-4755-a380-da88a308e607
2025-04-15 01:26:28,885 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:28,899 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:28,913 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1e06c019-365e-4618-a082-2dfe51e6461b
2025-04-15 01:26:28,925 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1e06c019-365e-4618-a082-2dfe51e6461b
2025-04-15 01:26:28,936 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bcc64793-90c5-4989-97a5-fec1deadb539
2025-04-15 01:26:28,945 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 01:26:28,945 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:28,954 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1e06c019-365e-4618-a082-2dfe51e6461b
2025-04-15 01:26:28,968 - INFO - Verified VN network id 9 for VN dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:28,968 - INFO - Verifications in API Server for VN ctest-vn-30990183 passed
2025-04-15 01:26:28,968 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:28,977 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1e06c019-365e-4618-a082-2dfe51e6461b
2025-04-15 01:26:28,984 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1e06c019-365e-4618-a082-2dfe51e6461b
2025-04-15 01:26:28,991 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bcc64793-90c5-4989-97a5-fec1deadb539
2025-04-15 01:26:29,007 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-30990183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96685955', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15882925289087254647', 'uuid-lslong': '12112783493866532844'}, 'enable': 'true', 'created': '2025-04-15T01:26:26', 'last-modified': '2025-04-15T01:26:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.565468'}
2025-04-15 01:26:29,018 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 01:26:29,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30990183 passed
2025-04-15 01:26:29,018 - DEBUG - ====Verifying policy data for ctest-vn-30990183 in API_Server ======
2025-04-15 01:26:29,018 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 01:26:29,027 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3769422b-0085-48da-9146-f0fc415d5401
2025-04-15 01:26:29,044 - DEBUG - Requesting: http://10.0.0.65:8082/project/9fe1c98d-95a3-4755-a380-da88a308e607
2025-04-15 01:26:29,119 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/dc6b7c66-2a1d-4077-a819-406951212fec
2025-04-15 01:26:29,128 - DEBUG - ==>Verifying data for policy with id: 36733357-0777-40b0-b6ff-0ed55c68b956, fqn: ['default-domain', 'ctest-TestBasicPolicy-96685955', 'ctest-policy-allow-all-14896969']
2025-04-15 01:26:29,128 - INFO - VN ctest-vn-30990183 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 01:26:29,128 - DEBUG - Verifying the vn in opserver
2025-04-15 01:26:29,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-30990183 virtual network link through opserver 10.0.0.65
2025-04-15 01:26:29,129 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 01:26:29,142 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-30990183', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-30990183?flat'}
2025-04-15 01:26:29,142 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96685955:ctest-vn-30990183 is found in opserver
2025-04-15 01:26:29,157 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 01:26:29,163 - DEBUG - VRF ids for VN ctest-vn-30990183: {}
2025-04-15 01:26:29,228 - DEBUG - Services list from nova: [