2025-03-28 12:48:25,328 - INFO - Domain Default found not creating
2025-03-28 12:48:25,524 - INFO - Project ctest-TestBasicPolicy-61944449 not found, creating it
2025-03-28 12:48:26,023 - INFO - Created Project:ctest-TestBasicPolicy-61944449, ID : 3474a2a3-ae0a-4624-856c-6b0ab6bbfb17
2025-03-28 12:48:27,676 - INFO - ================================================================================
2025-03-28 12:48:27,676 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 12:48:27,677 - 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-28 12:48:27,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2025-03-28 12:48:27,934 - INFO - Initial checks done. Running the testcase now
2025-03-28 12:48:27,934 - INFO -
2025-03-28 12:48:28,556 - DEBUG - Response for create_network : {'network': {'id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'name': 'ctest-vn-83518238', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-83518238'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 12:48:28,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '7edc7487-a9a9-483e-a309-e430386b72d8', 'name': '', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'network_id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'ip_version': 4, 'cidr': '79.69.15.192/26', 'allocation_pools': [{'start': '79.69.15.194', 'end': '79.69.15.254'}], 'gateway_ip': '79.69.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.69.15.194', 'tags': [], 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17'}}
2025-03-28 12:48:28,794 - INFO - Created VN ctest-vn-83518238
2025-03-28 12:48:28,852 - DEBUG - VN ctest-vn-83518238 UUID is 7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:29,201 - DEBUG - Response for create_network : {'network': {'id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'name': 'ctest-vn-38646023', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-38646023'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 12:48:29,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '04e0fa6d-bb24-417f-abbc-e8cfd1df6d15', 'name': '', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'network_id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'ip_version': 4, 'cidr': '9.169.69.192/26', 'allocation_pools': [{'start': '9.169.69.194', 'end': '9.169.69.254'}], 'gateway_ip': '9.169.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.169.69.194', 'tags': [], 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17'}}
2025-03-28 12:48:29,452 - INFO - Created VN ctest-vn-38646023
2025-03-28 12:48:29,508 - DEBUG - VN ctest-vn-38646023 UUID is c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:29,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238, 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-61944449:ctest-vn-38646023, 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-28 12:48:29,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'name': 'ctest-vn-83518238', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7edc7487-a9a9-483e-a309-e430386b72d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-83518238'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']], 'subnet_ipam': [{'subnet_cidr': '79.69.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 12:48:30,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'name': 'ctest-vn-38646023', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04e0fa6d-bb24-417f-abbc-e8cfd1df6d15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-38646023'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']], 'subnet_ipam': [{'subnet_cidr': '9.169.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 12:48:30,420 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-28 12:48:30,736 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-28 12:48:30,775 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27
2025-03-28 12:48:30,794 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17
2025-03-28 12:48:30,874 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:30,888 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:30,902 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd
2025-03-28 12:48:30,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd
2025-03-28 12:48:30,924 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3a14a091-57e4-4e05-b999-15c5f26ac691
2025-03-28 12:48:30,936 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 12:48:30,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:30,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd
2025-03-28 12:48:30,966 - INFO - Verified VN network id 8 for VN 7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:30,966 - INFO - Verifications in API Server for VN ctest-vn-83518238 passed
2025-03-28 12:48:30,966 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:30,980 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd
2025-03-28 12:48:30,991 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd
2025-03-28 12:48:31,003 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3a14a091-57e4-4e05-b999-15c5f26ac691
2025-03-28 12:48:31,018 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61944449', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8917245041491332014', 'uuid-lslong': '9297112343409364618'}, 'enable': 'true', 'created': '2025-03-28T12:48:28', 'last-modified': '2025-03-28T12:48:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087458'}
2025-03-28 12:48:31,027 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 12:48:31,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83518238 passed
2025-03-28 12:48:31,027 - DEBUG - ====Verifying policy data for ctest-vn-83518238 in API_Server ======
2025-03-28 12:48:31,027 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-28 12:48:31,035 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27
2025-03-28 12:48:31,057 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17
2025-03-28 12:48:31,134 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a
2025-03-28 12:48:31,146 - DEBUG - ==>Verifying data for policy with id: 1bf337ea-694b-4134-a5b6-980613499a85, fqn: ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']
2025-03-28 12:48:31,146 - INFO - VN ctest-vn-83518238 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 12:48:31,147 - DEBUG - Verifying the vn in opserver
2025-03-28 12:48:31,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238 virtual network link through opserver 10.0.0.33
2025-03-28 12:48:31,147 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-28 12:48:31,449 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-28 12:48:31,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238?flat'}
2025-03-28 12:48:31,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238 is found in opserver
2025-03-28 12:48:31,551 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 12:48:31,560 - DEBUG - VRF ids for VN ctest-vn-83518238: {}
2025-03-28 12:48:31,560 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-28 12:48:31,569 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27
2025-03-28 12:48:31,585 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17
2025-03-28 12:48:31,670 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,687 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad
2025-03-28 12:48:31,721 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad
2025-03-28 12:48:31,732 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cde18a5-446a-4221-a528-415237b49fa2
2025-03-28 12:48:31,742 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 12:48:31,742 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,755 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad
2025-03-28 12:48:31,774 - INFO - Verified VN network id 9 for VN c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,774 - INFO - Verifications in API Server for VN ctest-vn-38646023 passed
2025-03-28 12:48:31,775 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad
2025-03-28 12:48:31,799 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad
2025-03-28 12:48:31,808 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cde18a5-446a-4221-a528-415237b49fa2
2025-03-28 12:48:31,824 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61944449', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13871443302272683173', 'uuid-lslong': '11616293133621013757'}, 'enable': 'true', 'created': '2025-03-28T12:48:29', 'last-modified': '2025-03-28T12:48:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.628492'}
2025-03-28 12:48:31,832 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 12:48:31,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38646023 passed
2025-03-28 12:48:31,833 - DEBUG - ====Verifying policy data for ctest-vn-38646023 in API_Server ======
2025-03-28 12:48:31,833 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-28 12:48:31,840 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27
2025-03-28 12:48:31,856 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17
2025-03-28 12:48:31,943 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd
2025-03-28 12:48:31,957 - DEBUG - ==>Verifying data for policy with id: 1bf337ea-694b-4134-a5b6-980613499a85, fqn: ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']
2025-03-28 12:48:31,957 - INFO - VN ctest-vn-38646023 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 12:48:31,957 - DEBUG - Verifying the vn in opserver
2025-03-28 12:48:31,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023 virtual network link through opserver 10.0.0.33
2025-03-28 12:48:31,957 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-28 12:48:31,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023?flat'}
2025-03-28 12:48:31,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023 is found in opserver
2025-03-28 12:48:31,994 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 12:48:32,002 - DEBUG - VRF ids for VN ctest-vn-38646023: {}
2025-03-28 12:48:32,070 - DEBUG - Services list from nova: [