2025-02-17 02:23:30,497 - INFO - Domain Default found not creating
2025-02-17 02:23:30,643 - INFO - Project ctest-TestBasicPolicy-83783574 not found, creating it
2025-02-17 02:23:31,091 - INFO - Created Project:ctest-TestBasicPolicy-83783574, ID : e30bc4fa-60f8-4e77-90e7-e22c9d3e497a
2025-02-17 02:23:32,532 - INFO - ================================================================================
2025-02-17 02:23:32,532 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-17 02:23:32,532 - 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-17 02:23:32,790 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.23': '0'}} with
2025-02-17 02:23:32,790 - INFO - Initial checks done. Running the testcase now
2025-02-17 02:23:32,790 - INFO -
2025-02-17 02:23:33,332 - DEBUG - Response for create_network : {'network': {'id': '50221de8-4a6d-4eff-a1dc-35d6102eda77', 'name': 'ctest-vn-66074862', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-vn-66074862'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:23:33,519 - DEBUG - Response for create_subnet : {'subnet': {'id': '86daf253-b462-4278-b279-8d4bc940c7ca', 'name': '', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'network_id': '50221de8-4a6d-4eff-a1dc-35d6102eda77', 'ip_version': 4, 'cidr': '188.50.119.64/26', 'allocation_pools': [{'start': '188.50.119.66', 'end': '188.50.119.126'}], 'gateway_ip': '188.50.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.50.119.66', 'tags': [], 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a'}}
2025-02-17 02:23:33,537 - INFO - Created VN ctest-vn-66074862
2025-02-17 02:23:33,589 - DEBUG - VN ctest-vn-66074862 UUID is 50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:33,879 - DEBUG - Response for create_network : {'network': {'id': 'db39505e-bf85-40c8-81cd-760e7207004f', 'name': 'ctest-vn-43370031', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-vn-43370031'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:23:34,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9f4724d-41f4-4266-8a21-5282095a2078', 'name': '', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'network_id': 'db39505e-bf85-40c8-81cd-760e7207004f', 'ip_version': 4, 'cidr': '91.40.35.192/26', 'allocation_pools': [{'start': '91.40.35.194', 'end': '91.40.35.254'}], 'gateway_ip': '91.40.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.40.35.194', 'tags': [], 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a'}}
2025-02-17 02:23:34,081 - INFO - Created VN ctest-vn-43370031
2025-02-17 02:23:34,129 - DEBUG - VN ctest-vn-43370031 UUID is db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:34,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862, 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-83783574:ctest-vn-43370031, 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-17 02:23:34,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50221de8-4a6d-4eff-a1dc-35d6102eda77', 'name': 'ctest-vn-66074862', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86daf253-b462-4278-b279-8d4bc940c7ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-vn-66074862'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-policy-allow-all-46020656']], 'subnet_ipam': [{'subnet_cidr': '188.50.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:23:34,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db39505e-bf85-40c8-81cd-760e7207004f', 'name': 'ctest-vn-43370031', 'tenant_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'project_id': 'e30bc4fa60f84e7790e7e22c9d3e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9f4724d-41f4-4266-8a21-5282095a2078'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-vn-43370031'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-policy-allow-all-46020656']], 'subnet_ipam': [{'subnet_cidr': '91.40.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:23:34,961 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-17 02:23:35,256 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-17 02:23:35,285 - DEBUG - Requesting: http://10.0.0.49:8082/domain/377b7d42-8f3e-4743-9f87-91371d930016
2025-02-17 02:23:35,299 - DEBUG - Requesting: http://10.0.0.49:8082/project/e30bc4fa-60f8-4e77-90e7-e22c9d3e497a
2025-02-17 02:23:35,376 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,386 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,394 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/08782770-cfa4-443d-af05-7f7835baf200
2025-02-17 02:23:35,402 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/08782770-cfa4-443d-af05-7f7835baf200
2025-02-17 02:23:35,409 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/323f2e61-e6a2-4452-8d14-1151be9a3635
2025-02-17 02:23:35,416 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:23:35,416 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,427 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/08782770-cfa4-443d-af05-7f7835baf200
2025-02-17 02:23:35,439 - INFO - Verified VN network id 8 for VN 50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,439 - INFO - Verifications in API Server for VN ctest-vn-66074862 passed
2025-02-17 02:23:35,439 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,449 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/08782770-cfa4-443d-af05-7f7835baf200
2025-02-17 02:23:35,455 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/08782770-cfa4-443d-af05-7f7835baf200
2025-02-17 02:23:35,461 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/323f2e61-e6a2-4452-8d14-1151be9a3635
2025-02-17 02:23:35,472 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83783574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5774210555760692991', 'uuid-lslong': '11663256328493521527'}, 'enable': 'true', 'created': '2025-02-17T02:23:33', 'last-modified': '2025-02-17T02:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925964'}
2025-02-17 02:23:35,479 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:23:35,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66074862 passed
2025-02-17 02:23:35,479 - DEBUG - ====Verifying policy data for ctest-vn-66074862 in API_Server ======
2025-02-17 02:23:35,479 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-17 02:23:35,485 - DEBUG - Requesting: http://10.0.0.49:8082/domain/377b7d42-8f3e-4743-9f87-91371d930016
2025-02-17 02:23:35,497 - DEBUG - Requesting: http://10.0.0.49:8082/project/e30bc4fa-60f8-4e77-90e7-e22c9d3e497a
2025-02-17 02:23:35,565 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/50221de8-4a6d-4eff-a1dc-35d6102eda77
2025-02-17 02:23:35,573 - DEBUG - ==>Verifying data for policy with id: 3d205248-3ccb-4274-8615-4ad2166fdcf6, fqn: ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-policy-allow-all-46020656']
2025-02-17 02:23:35,573 - INFO - VN ctest-vn-66074862 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:23:35,573 - DEBUG - Verifying the vn in opserver
2025-02-17 02:23:35,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862 virtual network link through opserver 10.0.0.49
2025-02-17 02:23:35,573 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-17 02:23:35,863 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-17 02:23:35,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862?flat'}
2025-02-17 02:23:35,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-66074862 is found in opserver
2025-02-17 02:23:35,934 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:23:35,940 - DEBUG - VRF ids for VN ctest-vn-66074862: {}
2025-02-17 02:23:35,940 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-17 02:23:35,946 - DEBUG - Requesting: http://10.0.0.49:8082/domain/377b7d42-8f3e-4743-9f87-91371d930016
2025-02-17 02:23:35,958 - DEBUG - Requesting: http://10.0.0.49:8082/project/e30bc4fa-60f8-4e77-90e7-e22c9d3e497a
2025-02-17 02:23:36,029 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,039 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,046 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/acae2424-805d-418a-936d-500e29d1fa6f
2025-02-17 02:23:36,053 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/acae2424-805d-418a-936d-500e29d1fa6f
2025-02-17 02:23:36,060 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b998b7ca-53b9-4bd2-a960-9cf742891eb1
2025-02-17 02:23:36,067 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-17 02:23:36,067 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,076 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/acae2424-805d-418a-936d-500e29d1fa6f
2025-02-17 02:23:36,089 - INFO - Verified VN network id 9 for VN db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,089 - INFO - Verifications in API Server for VN ctest-vn-43370031 passed
2025-02-17 02:23:36,089 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,097 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/acae2424-805d-418a-936d-500e29d1fa6f
2025-02-17 02:23:36,104 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/acae2424-805d-418a-936d-500e29d1fa6f
2025-02-17 02:23:36,112 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b998b7ca-53b9-4bd2-a960-9cf742891eb1
2025-02-17 02:23:36,125 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-43370031', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83783574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15796745535849054408', 'uuid-lslong': '9353261805533069391'}, 'enable': 'true', 'created': '2025-02-17T02:23:33', 'last-modified': '2025-02-17T02:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349094'}
2025-02-17 02:23:36,132 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-17 02:23:36,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43370031 passed
2025-02-17 02:23:36,133 - DEBUG - ====Verifying policy data for ctest-vn-43370031 in API_Server ======
2025-02-17 02:23:36,133 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-17 02:23:36,139 - DEBUG - Requesting: http://10.0.0.49:8082/domain/377b7d42-8f3e-4743-9f87-91371d930016
2025-02-17 02:23:36,151 - DEBUG - Requesting: http://10.0.0.49:8082/project/e30bc4fa-60f8-4e77-90e7-e22c9d3e497a
2025-02-17 02:23:36,221 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/db39505e-bf85-40c8-81cd-760e7207004f
2025-02-17 02:23:36,230 - DEBUG - ==>Verifying data for policy with id: 3d205248-3ccb-4274-8615-4ad2166fdcf6, fqn: ['default-domain', 'ctest-TestBasicPolicy-83783574', 'ctest-policy-allow-all-46020656']
2025-02-17 02:23:36,230 - INFO - VN ctest-vn-43370031 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:23:36,230 - DEBUG - Verifying the vn in opserver
2025-02-17 02:23:36,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-43370031 virtual network link through opserver 10.0.0.49
2025-02-17 02:23:36,231 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-17 02:23:36,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-43370031', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-43370031?flat'}
2025-02-17 02:23:36,242 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83783574:ctest-vn-43370031 is found in opserver
2025-02-17 02:23:36,254 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:23:36,259 - DEBUG - VRF ids for VN ctest-vn-43370031: {}
2025-02-17 02:23:36,320 - DEBUG - Services list from nova: [