2025-03-31 14:32:14,851 - INFO - Domain Default found not creating
2025-03-31 14:32:15,032 - INFO - Project ctest-TestBasicPolicy-49707606 not found, creating it
2025-03-31 14:32:15,555 - INFO - Created Project:ctest-TestBasicPolicy-49707606, ID : d82b1cd1-e388-40e9-a03d-3070eb863303
2025-03-31 14:32:17,275 - INFO - ================================================================================
2025-03-31 14:32:17,276 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-31 14:32:17,276 - 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-03-31 14:32:17,550 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.19': '0'}} with
2025-03-31 14:32:17,550 - INFO - Initial checks done. Running the testcase now
2025-03-31 14:32:17,550 - INFO -
2025-03-31 14:32:18,181 - DEBUG - Response for create_network : {'network': {'id': '0858d358-4de1-4ec2-9dac-cce279287125', 'name': 'ctest-vn-49236093', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-49236093'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 14:32:18,399 - DEBUG - Response for create_subnet : {'subnet': {'id': '36e9482d-fc59-42f3-8f5b-9843a07247b6', 'name': '', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'network_id': '0858d358-4de1-4ec2-9dac-cce279287125', 'ip_version': 4, 'cidr': '44.70.233.192/26', 'allocation_pools': [{'start': '44.70.233.194', 'end': '44.70.233.254'}], 'gateway_ip': '44.70.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.70.233.194', 'tags': [], 'project_id': 'd82b1cd1e38840e9a03d3070eb863303'}}
2025-03-31 14:32:18,422 - INFO - Created VN ctest-vn-49236093
2025-03-31 14:32:18,475 - DEBUG - VN ctest-vn-49236093 UUID is 0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:18,798 - DEBUG - Response for create_network : {'network': {'id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'name': 'ctest-vn-23512523', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-23512523'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 14:32:19,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '3595d0a5-4011-4edf-9b7f-270e8e084bd1', 'name': '', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'network_id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'ip_version': 4, 'cidr': '150.116.13.128/26', 'allocation_pools': [{'start': '150.116.13.130', 'end': '150.116.13.190'}], 'gateway_ip': '150.116.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.116.13.130', 'tags': [], 'project_id': 'd82b1cd1e38840e9a03d3070eb863303'}}
2025-03-31 14:32:19,025 - INFO - Created VN ctest-vn-23512523
2025-03-31 14:32:19,078 - DEBUG - VN ctest-vn-23512523 UUID is 970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:19,202 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093, 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-49707606:ctest-vn-23512523, 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-03-31 14:32:19,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0858d358-4de1-4ec2-9dac-cce279287125', 'name': 'ctest-vn-49236093', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36e9482d-fc59-42f3-8f5b-9843a07247b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-49236093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']], 'subnet_ipam': [{'subnet_cidr': '44.70.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 14:32:19,803 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'name': 'ctest-vn-23512523', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3595d0a5-4011-4edf-9b7f-270e8e084bd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-23512523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']], 'subnet_ipam': [{'subnet_cidr': '150.116.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 14:32:19,975 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-31 14:32:20,319 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-31 14:32:20,352 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c
2025-03-31 14:32:20,371 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303
2025-03-31 14:32:20,466 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,484 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,496 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399
2025-03-31 14:32:20,506 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399
2025-03-31 14:32:20,517 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6f0a05ee-9d2c-44aa-829c-303f421dc118
2025-03-31 14:32:20,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 14:32:20,527 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,542 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399
2025-03-31 14:32:20,565 - INFO - Verified VN network id 8 for VN 0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,565 - INFO - Verifications in API Server for VN ctest-vn-49236093 passed
2025-03-31 14:32:20,565 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,579 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399
2025-03-31 14:32:20,589 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399
2025-03-31 14:32:20,599 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6f0a05ee-9d2c-44aa-829c-303f421dc118
2025-03-31 14:32:20,618 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49707606', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '601462926471155394', 'uuid-lslong': '11361681233016287525'}, 'enable': 'true', 'created': '2025-03-31T14:32:18', 'last-modified': '2025-03-31T14:32:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117954'}
2025-03-31 14:32:20,626 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 14:32:20,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49236093 passed
2025-03-31 14:32:20,626 - DEBUG - ====Verifying policy data for ctest-vn-49236093 in API_Server ======
2025-03-31 14:32:20,626 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-31 14:32:20,633 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c
2025-03-31 14:32:20,649 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303
2025-03-31 14:32:20,735 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125
2025-03-31 14:32:20,746 - DEBUG - ==>Verifying data for policy with id: 90fdd20d-ff24-4d36-83d4-fef33cba9fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']
2025-03-31 14:32:20,747 - INFO - VN ctest-vn-49236093 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 14:32:20,747 - DEBUG - Verifying the vn in opserver
2025-03-31 14:32:20,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093 virtual network link through opserver 10.0.0.37
2025-03-31 14:32:20,747 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-31 14:32:21,221 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-31 14:32:21,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093?flat'}
2025-03-31 14:32:21,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093 is found in opserver
2025-03-31 14:32:21,323 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 14:32:21,331 - DEBUG - VRF ids for VN ctest-vn-49236093: {}
2025-03-31 14:32:21,331 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-31 14:32:21,337 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c
2025-03-31 14:32:21,354 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303
2025-03-31 14:32:21,427 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,442 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,454 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5
2025-03-31 14:32:21,463 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5
2025-03-31 14:32:21,472 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7629f0d3-cc9d-4655-b370-9831f7f1e234
2025-03-31 14:32:21,479 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 14:32:21,480 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,491 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5
2025-03-31 14:32:21,507 - INFO - Verified VN network id 9 for VN 970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,507 - INFO - Verifications in API Server for VN ctest-vn-23512523 passed
2025-03-31 14:32:21,507 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,519 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5
2025-03-31 14:32:21,528 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5
2025-03-31 14:32:21,536 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7629f0d3-cc9d-4655-b370-9831f7f1e234
2025-03-31 14:32:21,552 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49707606', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10883532345431182883', 'uuid-lslong': '12982147064811805156'}, 'enable': 'true', 'created': '2025-03-31T14:32:18', 'last-modified': '2025-03-31T14:32:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.788008'}
2025-03-31 14:32:21,561 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 14:32:21,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23512523 passed
2025-03-31 14:32:21,561 - DEBUG - ====Verifying policy data for ctest-vn-23512523 in API_Server ======
2025-03-31 14:32:21,561 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-31 14:32:21,569 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c
2025-03-31 14:32:21,583 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303
2025-03-31 14:32:21,670 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4
2025-03-31 14:32:21,685 - DEBUG - ==>Verifying data for policy with id: 90fdd20d-ff24-4d36-83d4-fef33cba9fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']
2025-03-31 14:32:21,685 - INFO - VN ctest-vn-23512523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 14:32:21,685 - DEBUG - Verifying the vn in opserver
2025-03-31 14:32:21,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523 virtual network link through opserver 10.0.0.37
2025-03-31 14:32:21,685 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-31 14:32:21,701 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523?flat'}
2025-03-31 14:32:21,701 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523 is found in opserver
2025-03-31 14:32:21,716 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 14:32:21,722 - DEBUG - VRF ids for VN ctest-vn-23512523: {}
2025-03-31 14:32:21,786 - DEBUG - Services list from nova: [