2025-02-03 14:01:18,740 - INFO - Domain Default found not creating
2025-02-03 14:01:18,930 - INFO - Project ctest-TestBasicPolicy-15146331 not found, creating it
2025-02-03 14:01:19,438 - INFO - Created Project:ctest-TestBasicPolicy-15146331, ID : 80229dba-83f7-4209-addc-f95d18e591d0
2025-02-03 14:01:20,964 - INFO - ================================================================================
2025-02-03 14:01:20,964 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 14:01:20,964 - 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-03 14:01:21,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.27': '0'}} with
2025-02-03 14:01:21,222 - INFO - Initial checks done. Running the testcase now
2025-02-03 14:01:21,222 - INFO -
2025-02-03 14:01:21,793 - DEBUG - Response for create_network : {'network': {'id': 'e42c0a49-6e44-48bd-80fe-8ae22eec52fe', 'name': 'ctest-vn-54099772', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'project_id': '80229dba83f74209addcf95d18e591d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-vn-54099772'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 14:01:22,009 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e300aee-84cb-4153-be23-4f2f16c17448', 'name': '', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'network_id': 'e42c0a49-6e44-48bd-80fe-8ae22eec52fe', 'ip_version': 4, 'cidr': '153.195.151.0/26', 'allocation_pools': [{'start': '153.195.151.2', 'end': '153.195.151.62'}], 'gateway_ip': '153.195.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.195.151.2', 'tags': [], 'project_id': '80229dba83f74209addcf95d18e591d0'}}
2025-02-03 14:01:22,032 - INFO - Created VN ctest-vn-54099772
2025-02-03 14:01:22,086 - DEBUG - VN ctest-vn-54099772 UUID is e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:22,405 - DEBUG - Response for create_network : {'network': {'id': '5ccc5c82-4d54-49d9-9457-a409bb2aac2d', 'name': 'ctest-vn-19578445', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'project_id': '80229dba83f74209addcf95d18e591d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-vn-19578445'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 14:01:22,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '0989fda5-9aab-4a39-8ee1-fc0a1ca75fea', 'name': '', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'network_id': '5ccc5c82-4d54-49d9-9457-a409bb2aac2d', 'ip_version': 4, 'cidr': '34.74.235.128/26', 'allocation_pools': [{'start': '34.74.235.130', 'end': '34.74.235.190'}], 'gateway_ip': '34.74.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.74.235.130', 'tags': [], 'project_id': '80229dba83f74209addcf95d18e591d0'}}
2025-02-03 14:01:22,663 - INFO - Created VN ctest-vn-19578445
2025-02-03 14:01:22,718 - DEBUG - VN ctest-vn-19578445 UUID is 5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:22,843 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772, 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-15146331:ctest-vn-19578445, 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-03 14:01:23,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e42c0a49-6e44-48bd-80fe-8ae22eec52fe', 'name': 'ctest-vn-54099772', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'project_id': '80229dba83f74209addcf95d18e591d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e300aee-84cb-4153-be23-4f2f16c17448'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-vn-54099772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-policy-allow-all-91984441']], 'subnet_ipam': [{'subnet_cidr': '153.195.151.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 14:01:23,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ccc5c82-4d54-49d9-9457-a409bb2aac2d', 'name': 'ctest-vn-19578445', 'tenant_id': '80229dba83f74209addcf95d18e591d0', 'project_id': '80229dba83f74209addcf95d18e591d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0989fda5-9aab-4a39-8ee1-fc0a1ca75fea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-vn-19578445'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-policy-allow-all-91984441']], 'subnet_ipam': [{'subnet_cidr': '34.74.235.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 14:01:23,574 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-03 14:01:23,875 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-03 14:01:23,905 - DEBUG - Requesting: http://10.0.0.35:8082/domain/ce26c46b-38e5-41a4-a5ad-95c82876d945
2025-02-03 14:01:23,921 - DEBUG - Requesting: http://10.0.0.35:8082/project/80229dba-83f7-4209-addc-f95d18e591d0
2025-02-03 14:01:23,997 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,010 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,022 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e2f55b4a-52f7-4b0d-978e-68674899e60d
2025-02-03 14:01:24,030 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e2f55b4a-52f7-4b0d-978e-68674899e60d
2025-02-03 14:01:24,040 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/bd50b312-46db-45fc-bdc2-88d2f3cae069
2025-02-03 14:01:24,048 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 14:01:24,049 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,059 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e2f55b4a-52f7-4b0d-978e-68674899e60d
2025-02-03 14:01:24,076 - INFO - Verified VN network id 8 for VN e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,076 - INFO - Verifications in API Server for VN ctest-vn-54099772 passed
2025-02-03 14:01:24,076 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,088 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e2f55b4a-52f7-4b0d-978e-68674899e60d
2025-02-03 14:01:24,096 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e2f55b4a-52f7-4b0d-978e-68674899e60d
2025-02-03 14:01:24,104 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/bd50b312-46db-45fc-bdc2-88d2f3cae069
2025-02-03 14:01:24,120 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15146331', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16441527650121697469', 'uuid-lslong': '9295019384993764094'}, 'enable': 'true', 'created': '2025-02-03T14:01:21', 'last-modified': '2025-02-03T14:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983746'}
2025-02-03 14:01:24,127 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 14:01:24,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54099772 passed
2025-02-03 14:01:24,128 - DEBUG - ====Verifying policy data for ctest-vn-54099772 in API_Server ======
2025-02-03 14:01:24,128 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-03 14:01:24,135 - DEBUG - Requesting: http://10.0.0.35:8082/domain/ce26c46b-38e5-41a4-a5ad-95c82876d945
2025-02-03 14:01:24,148 - DEBUG - Requesting: http://10.0.0.35:8082/project/80229dba-83f7-4209-addc-f95d18e591d0
2025-02-03 14:01:24,224 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e42c0a49-6e44-48bd-80fe-8ae22eec52fe
2025-02-03 14:01:24,235 - DEBUG - ==>Verifying data for policy with id: d68b4f59-3e4a-479b-b4a8-780ba490be44, fqn: ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-policy-allow-all-91984441']
2025-02-03 14:01:24,235 - INFO - VN ctest-vn-54099772 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 14:01:24,235 - DEBUG - Verifying the vn in opserver
2025-02-03 14:01:24,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772 virtual network link through opserver 10.0.0.35
2025-02-03 14:01:24,235 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-03 14:01:24,529 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-03 14:01:24,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772?flat'}
2025-02-03 14:01:24,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-54099772 is found in opserver
2025-02-03 14:01:24,606 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 14:01:24,612 - DEBUG - VRF ids for VN ctest-vn-54099772: {}
2025-02-03 14:01:24,612 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-03 14:01:24,618 - DEBUG - Requesting: http://10.0.0.35:8082/domain/ce26c46b-38e5-41a4-a5ad-95c82876d945
2025-02-03 14:01:24,631 - DEBUG - Requesting: http://10.0.0.35:8082/project/80229dba-83f7-4209-addc-f95d18e591d0
2025-02-03 14:01:24,713 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,726 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,737 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/91f624cc-93f2-41bf-8a46-9486d2fc8dc0
2025-02-03 14:01:24,745 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/91f624cc-93f2-41bf-8a46-9486d2fc8dc0
2025-02-03 14:01:24,753 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d1f6e841-7877-4d57-8a45-af2380ec24c1
2025-02-03 14:01:24,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 14:01:24,760 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,771 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/91f624cc-93f2-41bf-8a46-9486d2fc8dc0
2025-02-03 14:01:24,786 - INFO - Verified VN network id 9 for VN 5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,786 - INFO - Verifications in API Server for VN ctest-vn-19578445 passed
2025-02-03 14:01:24,786 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,797 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/91f624cc-93f2-41bf-8a46-9486d2fc8dc0
2025-02-03 14:01:24,805 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/91f624cc-93f2-41bf-8a46-9486d2fc8dc0
2025-02-03 14:01:24,813 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d1f6e841-7877-4d57-8a45-af2380ec24c1
2025-02-03 14:01:24,826 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-19578445', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15146331', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6686821261451217369', 'uuid-lslong': '10689192602288958509'}, 'enable': 'true', 'created': '2025-02-03T14:01:22', 'last-modified': '2025-02-03T14:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443353'}
2025-02-03 14:01:24,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 14:01:24,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19578445 passed
2025-02-03 14:01:24,834 - DEBUG - ====Verifying policy data for ctest-vn-19578445 in API_Server ======
2025-02-03 14:01:24,834 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-03 14:01:24,841 - DEBUG - Requesting: http://10.0.0.35:8082/domain/ce26c46b-38e5-41a4-a5ad-95c82876d945
2025-02-03 14:01:24,856 - DEBUG - Requesting: http://10.0.0.35:8082/project/80229dba-83f7-4209-addc-f95d18e591d0
2025-02-03 14:01:24,934 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5ccc5c82-4d54-49d9-9457-a409bb2aac2d
2025-02-03 14:01:24,945 - DEBUG - ==>Verifying data for policy with id: d68b4f59-3e4a-479b-b4a8-780ba490be44, fqn: ['default-domain', 'ctest-TestBasicPolicy-15146331', 'ctest-policy-allow-all-91984441']
2025-02-03 14:01:24,945 - INFO - VN ctest-vn-19578445 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 14:01:24,945 - DEBUG - Verifying the vn in opserver
2025-02-03 14:01:24,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-19578445 virtual network link through opserver 10.0.0.35
2025-02-03 14:01:24,945 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-03 14:01:24,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-19578445', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-19578445?flat'}
2025-02-03 14:01:24,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15146331:ctest-vn-19578445 is found in opserver
2025-02-03 14:01:24,970 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 14:01:24,976 - DEBUG - VRF ids for VN ctest-vn-19578445: {}
2025-02-03 14:01:25,052 - DEBUG - Services list from nova: [