2025-02-13 02:40:21,117 - INFO - Domain Default found not creating
2025-02-13 02:40:21,281 - INFO - Project ctest-TestBasicPolicy-89357875 not found, creating it
2025-02-13 02:40:21,759 - INFO - Created Project:ctest-TestBasicPolicy-89357875, ID : 427c7aa4-874d-47e0-9742-86f69b88d7d5
2025-02-13 02:40:23,252 - INFO - ================================================================================
2025-02-13 02:40:23,253 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-13 02:40:23,253 - 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-13 02:40:23,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.28': '0'}} with
2025-02-13 02:40:23,509 - INFO - Initial checks done. Running the testcase now
2025-02-13 02:40:23,509 - INFO -
2025-02-13 02:40:24,100 - DEBUG - Response for create_network : {'network': {'id': '52878362-7cd8-47ff-b545-561cd6aa15c8', 'name': 'ctest-vn-87664047', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'project_id': '427c7aa4874d47e0974286f69b88d7d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-vn-87664047'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:40:24,281 - DEBUG - Response for create_subnet : {'subnet': {'id': '63a3833b-d85d-49af-b397-0ad62c8da241', 'name': '', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'network_id': '52878362-7cd8-47ff-b545-561cd6aa15c8', 'ip_version': 4, 'cidr': '19.210.95.64/26', 'allocation_pools': [{'start': '19.210.95.66', 'end': '19.210.95.126'}], 'gateway_ip': '19.210.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.210.95.66', 'tags': [], 'project_id': '427c7aa4874d47e0974286f69b88d7d5'}}
2025-02-13 02:40:24,301 - INFO - Created VN ctest-vn-87664047
2025-02-13 02:40:24,358 - DEBUG - VN ctest-vn-87664047 UUID is 52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:24,665 - DEBUG - Response for create_network : {'network': {'id': 'bdf32eae-4649-4357-84d7-76b2391c10e0', 'name': 'ctest-vn-28582992', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'project_id': '427c7aa4874d47e0974286f69b88d7d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-vn-28582992'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:40:24,826 - DEBUG - Response for create_subnet : {'subnet': {'id': '438235f0-8243-4671-babd-411de3ac1196', 'name': '', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'network_id': 'bdf32eae-4649-4357-84d7-76b2391c10e0', 'ip_version': 4, 'cidr': '36.154.91.128/26', 'allocation_pools': [{'start': '36.154.91.130', 'end': '36.154.91.190'}], 'gateway_ip': '36.154.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.154.91.130', 'tags': [], 'project_id': '427c7aa4874d47e0974286f69b88d7d5'}}
2025-02-13 02:40:24,846 - INFO - Created VN ctest-vn-28582992
2025-02-13 02:40:24,902 - DEBUG - VN ctest-vn-28582992 UUID is bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:25,026 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047, 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-89357875:ctest-vn-28582992, 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-13 02:40:25,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52878362-7cd8-47ff-b545-561cd6aa15c8', 'name': 'ctest-vn-87664047', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'project_id': '427c7aa4874d47e0974286f69b88d7d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63a3833b-d85d-49af-b397-0ad62c8da241'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-vn-87664047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-policy-allow-all-36512079']], 'subnet_ipam': [{'subnet_cidr': '19.210.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:40:25,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdf32eae-4649-4357-84d7-76b2391c10e0', 'name': 'ctest-vn-28582992', 'tenant_id': '427c7aa4874d47e0974286f69b88d7d5', 'project_id': '427c7aa4874d47e0974286f69b88d7d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['438235f0-8243-4671-babd-411de3ac1196'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-vn-28582992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-policy-allow-all-36512079']], 'subnet_ipam': [{'subnet_cidr': '36.154.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:40:25,815 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-13 02:40:26,116 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-13 02:40:26,150 - DEBUG - Requesting: http://10.0.0.47:8082/domain/a0bf9ba0-4b35-4d0f-83ad-34dc947abcf6
2025-02-13 02:40:26,168 - DEBUG - Requesting: http://10.0.0.47:8082/project/427c7aa4-874d-47e0-9742-86f69b88d7d5
2025-02-13 02:40:26,256 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,275 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,293 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/bddd0231-c6c2-4df8-a960-3a581bdcfc3b
2025-02-13 02:40:26,303 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/bddd0231-c6c2-4df8-a960-3a581bdcfc3b
2025-02-13 02:40:26,313 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/32db682b-6fa3-40cf-801d-9e11c1f4675b
2025-02-13 02:40:26,323 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 02:40:26,323 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,336 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/bddd0231-c6c2-4df8-a960-3a581bdcfc3b
2025-02-13 02:40:26,357 - INFO - Verified VN network id 9 for VN 52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,357 - INFO - Verifications in API Server for VN ctest-vn-87664047 passed
2025-02-13 02:40:26,357 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,371 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/bddd0231-c6c2-4df8-a960-3a581bdcfc3b
2025-02-13 02:40:26,382 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/bddd0231-c6c2-4df8-a960-3a581bdcfc3b
2025-02-13 02:40:26,391 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/32db682b-6fa3-40cf-801d-9e11c1f4675b
2025-02-13 02:40:26,406 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89357875', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5946866291990611967', 'uuid-lslong': '13061940976118535624'}, 'enable': 'true', 'created': '2025-02-13T02:40:24', 'last-modified': '2025-02-13T02:40:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.084662'}
2025-02-13 02:40:26,413 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 02:40:26,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87664047 passed
2025-02-13 02:40:26,413 - DEBUG - ====Verifying policy data for ctest-vn-87664047 in API_Server ======
2025-02-13 02:40:26,413 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-13 02:40:26,420 - DEBUG - Requesting: http://10.0.0.47:8082/domain/a0bf9ba0-4b35-4d0f-83ad-34dc947abcf6
2025-02-13 02:40:26,435 - DEBUG - Requesting: http://10.0.0.47:8082/project/427c7aa4-874d-47e0-9742-86f69b88d7d5
2025-02-13 02:40:26,518 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/52878362-7cd8-47ff-b545-561cd6aa15c8
2025-02-13 02:40:26,531 - DEBUG - ==>Verifying data for policy with id: 422b1819-7bd3-47da-87d2-06369cf865cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-policy-allow-all-36512079']
2025-02-13 02:40:26,532 - INFO - VN ctest-vn-87664047 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 02:40:26,532 - DEBUG - Verifying the vn in opserver
2025-02-13 02:40:26,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047 virtual network link through opserver 10.0.0.47
2025-02-13 02:40:26,532 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-13 02:40:26,833 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-13 02:40:26,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047?flat'}
2025-02-13 02:40:26,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-87664047 is found in opserver
2025-02-13 02:40:26,910 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 02:40:26,917 - DEBUG - VRF ids for VN ctest-vn-87664047: {}
2025-02-13 02:40:26,918 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-13 02:40:26,925 - DEBUG - Requesting: http://10.0.0.47:8082/domain/a0bf9ba0-4b35-4d0f-83ad-34dc947abcf6
2025-02-13 02:40:26,940 - DEBUG - Requesting: http://10.0.0.47:8082/project/427c7aa4-874d-47e0-9742-86f69b88d7d5
2025-02-13 02:40:27,020 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,036 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,048 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/74ac3ccf-aa15-451a-bdd0-514c951f0f8f
2025-02-13 02:40:27,057 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/74ac3ccf-aa15-451a-bdd0-514c951f0f8f
2025-02-13 02:40:27,066 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/a94c1c9b-af52-442d-b845-1e9c19047e65
2025-02-13 02:40:27,076 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 02:40:27,076 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,089 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/74ac3ccf-aa15-451a-bdd0-514c951f0f8f
2025-02-13 02:40:27,107 - INFO - Verified VN network id 10 for VN bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,107 - INFO - Verifications in API Server for VN ctest-vn-28582992 passed
2025-02-13 02:40:27,107 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,120 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/74ac3ccf-aa15-451a-bdd0-514c951f0f8f
2025-02-13 02:40:27,130 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/74ac3ccf-aa15-451a-bdd0-514c951f0f8f
2025-02-13 02:40:27,141 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/a94c1c9b-af52-442d-b845-1e9c19047e65
2025-02-13 02:40:27,157 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-28582992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89357875', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13687335018547462999', 'uuid-lslong': '9572250040833675488'}, 'enable': 'true', 'created': '2025-02-13T02:40:24', 'last-modified': '2025-02-13T02:40:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.593044'}
2025-02-13 02:40:27,166 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 02:40:27,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28582992 passed
2025-02-13 02:40:27,167 - DEBUG - ====Verifying policy data for ctest-vn-28582992 in API_Server ======
2025-02-13 02:40:27,167 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-13 02:40:27,175 - DEBUG - Requesting: http://10.0.0.47:8082/domain/a0bf9ba0-4b35-4d0f-83ad-34dc947abcf6
2025-02-13 02:40:27,191 - DEBUG - Requesting: http://10.0.0.47:8082/project/427c7aa4-874d-47e0-9742-86f69b88d7d5
2025-02-13 02:40:27,274 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/bdf32eae-4649-4357-84d7-76b2391c10e0
2025-02-13 02:40:27,290 - DEBUG - ==>Verifying data for policy with id: 422b1819-7bd3-47da-87d2-06369cf865cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89357875', 'ctest-policy-allow-all-36512079']
2025-02-13 02:40:27,290 - INFO - VN ctest-vn-28582992 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 02:40:27,290 - DEBUG - Verifying the vn in opserver
2025-02-13 02:40:27,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-28582992 virtual network link through opserver 10.0.0.47
2025-02-13 02:40:27,290 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-13 02:40:27,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-28582992', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-28582992?flat'}
2025-02-13 02:40:27,305 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89357875:ctest-vn-28582992 is found in opserver
2025-02-13 02:40:27,319 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 02:40:27,326 - DEBUG - VRF ids for VN ctest-vn-28582992: {}
2025-02-13 02:40:27,394 - DEBUG - Services list from nova: [